summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-01-06 10:19:56 +0000
committerKurt Zenker <kz@openoffice.org>2006-01-06 10:19:56 +0000
commit8f9fb57844f6e0b612770fe195972a0b905b4198 (patch)
treeedfd66d42a0f0e81762461a8f9e43346d2bb63b9 /setup_native/source/win32/customactions/patch/swappatchfiles.cxx
parent428acfe962a2a45d28dbc6ff2df1d1a16f58d431 (diff)
INTEGRATION: CWS native34 (1.6.6); FILE MERGED
2005/12/14 15:59:35 is 1.6.6.1: #127719# smaller patchlist.txt
Diffstat (limited to 'setup_native/source/win32/customactions/patch/swappatchfiles.cxx')
-rwxr-xr-xsetup_native/source/win32/customactions/patch/swappatchfiles.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/setup_native/source/win32/customactions/patch/swappatchfiles.cxx b/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
index b666a4423e09..62c055287b2f 100755
--- a/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
+++ b/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: swappatchfiles.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: obo $ $Date: 2005-11-23 16:22:00 $
+ * last change: $Author: kz $ $Date: 2006-01-06 11:19:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -249,6 +249,7 @@ extern "C" UINT __stdcall InstallPatchedFiles( MSIHANDLE handle )
while ( *pSectionName )
{
std::_tstring sSectionName = pSectionName;
+ if ( std::_tstring(TEXT("_root")) == sSectionName ) { sSectionName = TEXT(""); }
// mystr = "Section: " + sSectionName;
// MessageBox( NULL, mystr.c_str(), "Titel", MB_OK );
@@ -269,7 +270,7 @@ extern "C" UINT __stdcall InstallPatchedFiles( MSIHANDLE handle )
sFileName1 = strip( sFileName1, '\"' );
sExtension = strip( sExtension, '\"' );
- sFileName1 = sInstDir + sFileName1;
+ sFileName1 = sInstDir + sSectionName + sFileName1;
sFileName2 = sFileName1 + sExtension;
// mystr = "Convert: " + sFileName1 + " to " + sFileName2;
@@ -335,6 +336,7 @@ extern "C" UINT __stdcall UninstallPatchedFiles( MSIHANDLE handle )
while ( *pSectionName )
{
std::_tstring sSectionName = pSectionName;
+ if ( std::_tstring(TEXT("_root")) == sSectionName ) { sSectionName = TEXT(""); }
// mystr = "Section: " + sSectionName;
// MessageBox( NULL, mystr.c_str(), "Titel", MB_OK );
@@ -355,7 +357,7 @@ extern "C" UINT __stdcall UninstallPatchedFiles( MSIHANDLE handle )
sFileName1 = strip( sFileName1, '\"' );
sExtension = strip( sExtension, '\"' );
- sFileName1 = sInstDir + sFileName1;
+ sFileName1 = sInstDir + sSectionName + sFileName1;
sFileName2 = sFileName1 + sExtension;
// mystr = "Convert: " + sFileName1 + " to " + sFileName2;