I have to create an MSI (both x86 and x64 flavors) for my team. However, I have
a 32-bit ONLY component that needs to go the appropriate Program Files
directory. I used the below Wix fragment and this works fine when I compile a
64bit MSI, but it errors out for 32-bit with "error LGHT0091 : Duplicate symbol
'Directory:ProgramFilesFolder' found.". This is because the Directory ID is not
unique but I can't figure out how to not make them conflict.
Any ideas on how to do this cleanly ?
Wix Fragment
<?if $(env._BuildArch) = "x86" ?>
<?define ProgramFolder = ProgramFilesFolder ?>
<?define ProgramFolder32 = ProgramFilesFolder ?>
<?define Win64 = no ?>
<?elseif $(env._BuildArch) = "amd64" ?>
<?define ProgramFolder = ProgramFiles64Folder ?>
<?define ProgramFolder32 = ProgramFilesFolder ?>
<?define Win64 = yes ?>
<?endif?>
<!--On 64-bit OS: ProgramFilesFolder = %Program Files (x86)% ;
ProgramFiles64Folder = %Program Files% -->
<Directory Id='$(var.ProgramFolder32)' Name="ProgramFiles32">
<Directory Id="MyAppFolder" Name="My App Folder">
<Directory Id="App1" Name="App1"/>
</Directory>
</Directory>
-Arvind
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users