We have an existing Wix installer that basically just takes a set of .NET assemblies and deploys them to various folders on the machine into the \Program Files\AppName folder by default. There are a few registry settings under HKLM\Software\AppName that are written as well.

 

On a 64-bit platform this will install into the Program Files(x86) folder by default since we are using [ProgramFilesFolder] and the registry keys are written to the reflected registry. I understand how to set the package and components to be 64-bit and I can get all of that to work if I duplicate the Wix scripts for 32-bit and 64-bit and build separate MSI.

 

My question is this, is it possible to use the same Wix files to build one MSI that will deploy the files and registry settings to 32-bit or 64-bit determined at runtime? Since .NET assemblies don’t really care what flavor of the OS they are running against, I’d like to have one MSI that deploys the files and registry settings to the OS appropriate folders without having a second installer. If it is not possible to build a single MSI targeting both, then I’d like some best practices, or even an example or two would be nice, of installers that target both 32-bit and 64-bit installs.

 

I’m going to experiment with several things today. But if someone could tell me what will and won’t work, or explain how to do what I need to do (an example would be lovely), then I would be most grateful.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to