So would this work? I separated the command registry entry into two
components.
<Component Id="XXXXRegShellOpenCommand32bit"
Guid="726CF30C-BC18-45A1-BAB1-3EEF08B8C10A" >
<Condition> VersionNT64 >= 600 </Condition>
<RegistryKey Id=XXXXRegShellOpenCommand32' 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
(x86)\XXXX\XXXX.exe" "%1"' />
</RegistryKey>
</Component>
<Component Id="XXXXRegShellOpenCommand64bit"
Guid="9ADF87DE-D138-4AF1-ADE9-BDCB21736A0E" >
<Condition> VersionNT >= 600</Condition>
<RegistryKey Id='SmartListW32RegShellOpenCommand64' 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
(x86)\XXXX\XXXX.exe" "%1"' />
</RegistryKey>
</Component>
-----Original Message-----
From: David Esiobu [mailto:[email protected]]
Sent: Wednesday, March 07, 2012 10:18 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Determining which OS is installed
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:[email protected]]
Sent: Wednesday, March 07, 2012 1:00 PM
To: [email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 102072 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
The Professional version does not have this message
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users