It sounds like you are almost there, the trick is to use * as your component
guids then wix will get it right for you (shared components will use the same
guid as determined by the keypath).

http://wyrdfish.wordpress.com/2011/01/05/32-and-64-bit-msis-from-a-single-sou
rce-file/

I also use a launch condition to stop the 32bit MSI being installed on a 64
bit OS then you don't have to worry about shortcuts. But if you do want to
allow them to be installed side by side you would have to create a 32 and a
64 bit shortcut folder to stop them clashing.

-----Original Message-----
From: Dave Mateer [mailto:dave_mat...@ntm.org] 
Sent: 12 March 2012 18:36
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] 32- and 64-bit installers: which GUIDs should be unique?

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
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to