Re: [WiX-users] Problem writing registry values
Hooray...Fantastic!! it works!!! appreciate :)) And i get error message while trying to update binary values though..code is as follows Registry Id=PCPERegUnCooperativeApps Root=HKLM Key=Software\Wow6432Node\Product\Shutdown Registry Action=write Name=UnCooperativeApps Type=binary Value=#x{4E4F5445530046726F6E74506167654578706C6F72657257696E646F773430} xmlns=http://schemas.microsoft.com/wix/2006/wi; / /Registry Any similar suggestions? Daryn Mitchell wrote: Anidil, Does it help if you pass Value='1' instead of Value='#0x0001(1)'? Daryn. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anidil [...] Now that i don't get permission denied message after prefexing # for all the DWORD types as follows : Registry Id=PCPERegNotification Root=HKLM Key=Software\Wow6432Node\Product\Notification Registry Action=write Name=Notification Sounds Enabled Type=integer Value=#0x0001 (1) xmlns=http://schemas.microsoft.com/wix/2006/wi; / /Registry but i see that the registry is getting updated as type REG_SZ... :( - 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 -- View this message in context: http://www.nabble.com/Problem-writing-registry-values-tf4149618.html#a11825115 Sent from the wix-users mailing list archive at Nabble.com. - 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
Re: [WiX-users] Problem writing registry values
It seems that MSI cannot write REG_DWORD type values to registry..Wht is the workaround for this? Anidil wrote: I'm using the following code to write an integer value to windows registry. Registry Id='PCPERegNotification' Root='HKLM' Key='Software\Wow6432Node\Product\Notification' Name='Notification Sounds Enabled' Action='write' Type='integer' Value='0x0001(1)' / It gives me a permission denied to access the specified registry key message while running the msi. any help? -- View this message in context: http://www.nabble.com/Problem-writing-registry-values-tf4149618.html#a11805535 Sent from the wix-users mailing list archive at Nabble.com. - 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
Re: [WiX-users] Problem writing registry values
It seems that MSI cannot write REG_DWORD type values to registry..Wht is the workaround for this? Anidil, The documentation for the registry table in MSI says: This column is the localizable registry value. The field is Formatted. If the value is attached to one of the following prefixes (i.e. #%value) then the value is interpreted as described in the table. Note that each prefix begins with a number sign (#). If the value begins with two or more consecutive number signs (#), the first # is ignored and value is interpreted and stored as a string. #x The value is interpreted and stored as a hexadecimal value (REG_BINARY). #% The value is interpreted and stored as an expandable string (REG_EXPAND_SZ). # The value is interpreted and stored as an integer (REG_DWORD). So just put a '#' on the front of your number: Value='#1' Regards, John - 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
Re: [WiX-users] Problem writing registry values
I have tried prefexing # for all the DWORD types but after running the MSI i see that the registry is getting updated as type REG_SZ Looks like I misled you - the RegistryValue element has a 'Type' attribute, which you can set to 'integer': RegistryValue Id=Registry1 Name=IntValue Value=42 Type=integer / Cheers, John - 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
Re: [WiX-users] Problem writing registry values
I have tried prefexing # for all the DWORD types but after running the MSI i see that the registry is getting updated as type REG_SZ John Hall-9 wrote: It seems that MSI cannot write REG_DWORD type values to registry..Wht is the workaround for this? Anidil, The documentation for the registry table in MSI says: This column is the localizable registry value. The field is Formatted. If the value is attached to one of the following prefixes (i.e. #%value) then the value is interpreted as described in the table. Note that each prefix begins with a number sign (#). If the value begins with two or more consecutive number signs (#), the first # is ignored and value is interpreted and stored as a string. #x The value is interpreted and stored as a hexadecimal value (REG_BINARY). #% The value is interpreted and stored as an expandable string (REG_EXPAND_SZ). # The value is interpreted and stored as an integer (REG_DWORD). So just put a '#' on the front of your number: Value='#1' Regards, John - 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 -- View this message in context: http://www.nabble.com/Problem-writing-registry-values-tf4149618.html#a11806670 Sent from the wix-users mailing list archive at Nabble.com. - 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
Re: [WiX-users] Problem writing registry values
Oki..The ReistryKey and RegistryValue tags are used only with WiX 3.0 right? Yes. Under WiX 2.0, you seem to just use the Registry element, which also has a Type attribute: Registry Id=Registry1 Root=HKLM Key=Software\Product Value=42 Type=integer / Cheers, John - 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
Re: [WiX-users] Problem writing registry values
Anidil, Does it help if you pass Value='1' instead of Value='#0x0001(1)'? Daryn. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anidil [...] Now that i don't get permission denied message after prefexing # for all the DWORD types as follows : Registry Id=PCPERegNotification Root=HKLM Key=Software\Wow6432Node\Product\Notification Registry Action=write Name=Notification Sounds Enabled Type=integer Value=#0x0001 (1) xmlns=http://schemas.microsoft.com/wix/2006/wi; / /Registry but i see that the registry is getting updated as type REG_SZ... :( - 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
Re: [WiX-users] Problem writing registry values
I'm using WIX 2.0 and i have mentioned the type attribute in the registry tag as given in my code.. But it doesn't seems to work as expected :( John Hall-9 wrote: Oki..The ReistryKey and RegistryValue tags are used only with WiX 3.0 right? Yes. Under WiX 2.0, you seem to just use the Registry element, which also has a Type attribute: Registry Id=Registry1 Root=HKLM Key=Software\Product Value=42 Type=integer / Cheers, John - 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 -- View this message in context: http://www.nabble.com/Problem-writing-registry-values-tf4149618.html#a11808351 Sent from the wix-users mailing list archive at Nabble.com. - 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
[WiX-users] Problem writing registry values
I'm using the following code to write an integer value to windows registry. Registry Id='PCPERegNotification' Root='HKLM' Key='Software\Wow6432Node\Notification' Name='Notification Sounds Enabled' Action='write' Type='integer' Value='0x0001(1)' / It gives me a permission denied to access the specified registry key message while running the msi. any help? -- View this message in context: http://www.nabble.com/Problem-writing-registry-values-tf4149618.html#a11804969 Sent from the wix-users mailing list archive at Nabble.com. - 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