Hi All,

Does ti require special permissions to write DWORD value into the registry
as compared to string?

the only difference between the 2 snippets below is the Type =
integer/string

the following code fails with error. Sufficient permission not there to
write to registry.

<Component Id='RegistryComponent'
Guid='870A83F8-C9EF-4884-8BEE-CCD044433CC2' Location='local' Win64='$(
var.Win64AttributeValue)'>
     <Registry Id='Registry'
                   Action='write'
                   Root='HKLM'
                   Key='SOFTWARE\Product'
                   Name='Eula'
                   Type='integer'
                   Value='[PROPERTYNAME]'>
           <Permission GenericAll='yes' User='Administrators' />
           <Permission Read='yes' Write='yes' User='Everyone' />
     </Registry>
    </Component>

the following works as expected.

<Component Id='RegistryComponent'
Guid='870A83F8-C9EF-4884-8BEE-CCD044433CC2' Location='local' Win64='$(
var.Win64AttributeValue)'>
     <Registry Id='Registry'
                   Action='write'
                   Root='HKLM'
                   Key='SOFTWARE\Product'
                   Name='Eula'
                   Type='string'
                   Value='[PROPERTYNAME]'>
           <Permission GenericAll='yes' User='Administrators' />
           <Permission Read='yes' Write='yes' User='Everyone' />
     </Registry>
    </Component>

THanks,
Kaushik
-------------------------------------------------------------------------
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