This won't work because you're using a pre-processor check for your condition, which happens at the time you build the MSI, not at the time you run it.
You need to do the check by adding a <Condition> element to the <Compnent> element that I assume eventually includes the Registry snippet below.
Neil
________________________________
From:
wix-users-bounces@... [
wix-users-bounces@...] On Behalf Of Deepak Bansal [
deepakbansal@...]
Sent: Tuesday, July 22, 2008 5:40 AM
To:
wix-users@...
Subject: [WiX-users] conditionally adding registry entries (NOT conditional full installation)
Hi All,
While installing a product, I want to add few extra registry entries
if the OS is Windows Vista. To achieve this, I created my .ddr file as
given below..but its not working. Am i missing something? Any help
will be highly appreciated..
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns..>
<Fragment>
<dd:RegistryGroup Id="abc">
<dd:Registry Root="HKCR" Key="r1" Type="string" Value="v1"
Action="write" />
<?if VersionNT = 600 AND MsiNTProductType = 1 ?>
<dd:Registry Root="HKLM"
Key="SYSTEM\CurrentControlSet\Control\Lsa\Credssp\PolicyDefaults\AllowDefaultCredentials"
Name="r2" Type="string" Value="v2" Action="write" />
<?endif?>
</dd:RegistryGroup>
</Fragment>
</Wix>
-deepak
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users