Hi Rick, Please see the documentation for WiX preprocessor statements: http://wix.sourceforge.net/manual-wix3/preprocessor.htm
Note that you can't use MSI properties there because preprocessor statements affect the build process, not the runtime behavior. Hope that helps, David -----Original Message----- From: Rick Hantz (Hotmail) [mailto:rick_ha...@hotmail.com] Sent: Wednesday, March 07, 2012 1:00 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Determining which OS is installed I need to install an URL handler, which means different path entries if you have a 32 or 64bit OS installed. I tried: <?if (VersionNT64 >= 600) ?> <RegistryKey Id='XXXXRegShellOpenCommand' Root='HKCR' Key='SmartList\Shell\open\command' Action='createAndRemoveOnUninstall'> <Permission User="Administrators" GenericAll="yes" /> <Permission User="Users" GenericAll="yes" /> <RegistryValue Type='string' Value='"C:\Program Files (x86)\XXXX\XXXX.exe" "%1"' /> </RegistryKey> <?else?> <RegistryKey Id='SmartLXXXXRegShellOpenCommand' Root='HKCR' Key=XXXX\Shell\open\command' Action='createAndRemoveOnUninstall'> <Permission User="Administrators" GenericAll="yes" /> <Permission User="Users" GenericAll="yes" /> <RegistryValue Type='string' Value='"C:\Program Files\XXXX\XXXX.exe" "%1"' /> </RegistryKey> But it errors at (VersionNT64 >= 600). I'm a first time WiX user, using VS11 beta and one of the latest 3.6 beta builds.. Appreciate any help. Thanks, RickH _____ I am using the Free version of SPAMfighter <http://www.spamfighter.com/len> . SPAMfighter has removed 102072 of my spam emails to date. Do you have a slow PC? <http://www.spamfighter.com/SLOW-PCfighter?cid=sigen> Try free scan! ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users