Bob Arnson a écrit :
Frédéric Viollet wrote:
-During install, I'd like to check for some registry entry (a DWORD.
Lets call it "myDword").
Use RegistrySearch to set a property.
Ok, but what if myDword doesn't exist? What does RegistrySearch return?
-If myDword doesn't exist or is inferior to a given value x, then I
would like to create/set it to x.
Use a custom action with a condition to write to the property, then
RegistryKey/RegistryValue to write it.
I tried something like this, but I get an error when compiling:
<Property Id='MAXHEAPSIZE'>
<RegistrySearch Id='MyHeapSize'
Root='HKLM'
Key='SOFTWARE\MySoftware\Parameters'
Name='myDword'
Type='raw' />
</Property>
<Component Id="APM_MAXHEAPSIZE_REGISTRY"
Guid="924B3E41-7157-4927-B892-8D52D8A392BD">
<Condition>MAXHEAPSIZE AND (MAXHEAPSIZE< 256)</Condition>
<RegistryKey Root="HKLM" Key="SOFTWARE\MySoftware\Parameters">
<RegistryValue KeyPath="yes" Name="myDword" Value="256"
Type="integer" Action="write" />
</RegistryKey>
</Component>
I get the error : Name cannot begin with the ' ' character, hexadecimal
value 0x20
Any idea?
Thanks a lot.
Fred
begin:vcard
fn;quoted-printable:Fr=C3=A9d=C3=A9ric Viollet
n;quoted-printable:Viollet;Fr=C3=A9d=C3=A9ric
org:Bull, Architect of an Open World (TM);Evidian S.A.
adr;quoted-printable:;;Rue Jean Jaur=C3=A8s;Les Clayes Sous Bois;;78340;France
email;internet:[EMAIL PROTECTED]
title:Software Engineer
tel;work:01 30 80 77 34
url:http://www.evidian.com - http://www.bull.com
version:2.1
end:vcard
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users