Skip to content

Commit 1fbc3b2

Browse files
authored
Fix duplicate component codes (#75)
The autogenerated component GUIDs were based on the same path and therefore were the same in both bitnesses. Installing both worked, but once one of them was uninstalled, the other's files remained despite its uninstallation finishing successfully. I have no idea how this got through my testing; perhaps it only happens when both merge modules are installed via the same MSI.
1 parent 9383592 commit 1fbc3b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

installer/psqlodbcm_cpu.wxs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<?define UNICODEFOLDER = "x64_Unicode_Release" ?>
1414
<?define Module_PackageId = "970B6E07-7105-4d66-80FA-9E208952FB96" ?>
1515
<?define InstallerVersion = "300" ?>
16+
<?define GUIDSEED = "400790AA-1377-4E65-B004-AB66FAD634B2" ?>
1617
<?if $(env.PROCESSOR_ARCHITECTURE) = "AMD64" ?>
1718
<?define SysFolder = "$(env.SystemRoot)\system32" ?>
1819
<?else?>
@@ -26,6 +27,7 @@
2627
<?define UNICODEFOLDER = "x86_Unicode_Release" ?>
2728
<?define Module_PackageId = "ACF10866-5C01-46f0-90F0-D5618638CA48" ?>
2829
<?define InstallerVersion = "150" ?>
30+
<?define GUIDSEED = "1B43106C-C8D7-4F21-84CF-44DBF1C1D934" ?>
2931
<?if $(env.PROCESSOR_ARCHITECTURE) = "AMD64" ?>
3032
<?define SysFolder = "$(env.SystemRoot)\syswow64" ?>
3133
<?else?>
@@ -49,7 +51,7 @@
4951
Codepage="1252" />
5052

5153
<!-- Avoid WIX0267 with naked files in a merge module -->
52-
<Directory Id="INSTALLFOLDER" />
54+
<Directory Id="INSTALLFOLDER" ComponentGuidGenerationSeed="$(GUIDSEED)"/>
5355

5456
<!-- PostgreSQL -->
5557
<File Name="podbc30a.dll" Source="$(BINBASE)\$(ANSIFOLDER)\psqlodbc30a.dll">

0 commit comments

Comments
 (0)