I have a working installer and have been using this installer for both 32-bit 
and 64-bit, simply switching the "Program files" location, i.e.:

    <?if $(var.Platform) = x64 ?>
      <?define Win64 = "yes" ?>
      <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>  
    <?else ?>
      <?define Win64 = "no" ?>
      <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
    <?endif ?>

We just discovered that Weird Things Happen when both the 32-bit and 64-bit are 
installed, then uninstalled in various orders, etc.

The files in "Program files" are obviously installed in separate locations, but 
some of the content is installed in the same location, i.e. 
"CommonAppDataFolder".

My question is, to save myself the most amount of pain in the future, which 
Guids should be the same between the 32-bit and 64-bit versions, and which 
should be different? For those that are different, how can you code this in WiX 
without maintaining two completely separate installers? We would like to 
support both major and minor upgrades, and although we don't want people to 
install both the 32-bit version and 64-bit version and run them side-by-side, 
it is really outside of our control and ideally that shouldn't break anything, 
nor should uninstalling one version break the other.

Here are my guesses so far, but I really don't have much confidence in my 
understanding:

+---------------------------------+---------------+-----------------------------------------------------+
| Value                           | x86/x64 same? | How                         
                        |
+---------------------------------+---------------+-----------------------------------------------------+
| ProductCode                       No              Use * as ProductCode        
                        |
| UpgradeCode                       No              Define different static 
Guids in config file        |
| Files in "Program files"          No              ??? Would I have to define 
every single file twice? |
| Files in " CommonAppDataFolder"   Yes             Hard-coded Guid             
                        |
| Shortcuts (shared)                Yes             Hard-coded Guid             
                        |
+-------------------------------------------------------------------------------------------------------+

Please enlighten me! Thanks!

Dave

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to