No known issues. Thousands of people use the Registry table everyday to create registry keys with no issue.
Usually, these issues end up being some CustomAction wreaking havoc with what was expected. -----Original Message----- From: Eric Maines [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 07:41 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Writing to registry fails, but msi log reports keys written? Hi wix-users, I was recently asked to write values to the registry in a working installer. All the other parts of the installer work, even the log seems to show it registered. - The problem is when I look in the registry, the keys are not written. (I also tried changing the Action attribute to the following: Action="write" and Action="append", but with no luck) Here is my code (Registry.wxs): <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment Id="RegistryEntriesFragment"> <DirectoryRef Id="TARGETDIR"> <Component Id="AnkhsvnRegistryKeys" Guid="747DFC0D-2A9D-430f-BB20-1FE0B74EE418" > <Condition>ANKHSVNVSINSTALLDIR</Condition> <Registry Root="HKLM" Key="SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SolutionPersistence\SubversionScc" Value="{604ad610-5cf9-4bd5-8acc-f49810e2efd4}" Type="string" /> <Registry Root="HKLM" Key="SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders\{8770915B-B235-42EC-BBC6-8E93286E59B5}" Value="AnkhSVN - Subversion Support for Visual Studio" Type="string"> <Registry Name="Service" Value="{d8c473d2-9634-4513-91d5-e1a671fe2df4}" Type="string" /> </Registry> </DirectoryRef> </Fragment> </Wix> .msi log for the Condition: ... AppSearch: Property: ANKHSVNVSINSTALLDIR, Signature: AnkhSvnInstalledRegistryMSI (c) (7C:04) [14:50:09:318]: Note: 1: 2262 2: Signature 3: -2147287038 MSI (c) (7C:04) [14:50:09:319]: PROPERTY CHANGE: Adding ANKHSVNVSINSTALLDIR property. Its value is 'C:\Program Files\AnkhSvn 2.0\'.Action ended 14:50:09: AppSearch. Return value 1. ... Here is the part log that details the registering: ... MSI (s) (80:94) [14:50:30:481]: Executing op: ActionStart(Name=WriteRegistryValues,Description=Writing system registry values,Template=Key: [1], Name: [2], Value: [3])Action 14:50:30: WriteRegistryValues. Writing system registry valuesMSI (s) (80:94) [14:50:30:482]: Executing op: ProgressTotal(Total=92,Type=1,ByteEquivalent=13200)MSI (s) (80:94) [14:50:30:483]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\AppEnv\9.0\Apps\myApp,,BinaryType=0,)MSI (s) (80:94) [14:50:30:483]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SolutionPersistence\SubversionScc,,BinaryType=0,)MSI (s) (80:94) [14:50:30:483]: Executing op: RegAddValue(,Value={604ad610-5cf9-4bd5-8acc-f49810e2efd4},)WriteRegistryValues: Key: \SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SolutionPersistence\SubversionScc, Name: , Value: {604ad610-5cf9-4bd5-8acc-f49810e2efd4}MSI (s) (80:94) [14:50:30:490]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\ Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders,,BinaryType=0,)MSI (s) (80:94) [14:50:30:490]: Executing op: RegAddValue(,Value={8770915b-b235-42ec-bbc6-8e93286e59b5},)WriteRegistryValues: Key: \SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders, Name: , Value: {8770915b-b235-42ec-bbc6-8e93286e59b5}MSI (s) (80:94) [14:50:30:494]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders\{8770915B-B235-42EC-BBC6-8E93286E59B5},,BinaryType=0,)MSI (s) (80:94) [14:50:30:494]: Executing op: RegAddValue(Name=Service,Value={d8c473d2-9634-4513-91d5-e1a671fe2df4},)WriteRegistryValues: Key: \SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders\{8770915B-B235-42EC-BBC6-8E93286E59B5}, Name: Service, Value: {d8c473d2-9634-4513-91d5-e1a671fe2df4}MSI (s) (80:94) [14:50:30:497]: Executing op: RegAddValue(,Value=AnkhSVN - Subversion Support for Visual Studio,)WriteRegistryValues: Key: \SOFTWARE\ Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders\{8770915B-B235-42EC-BBC6-8E93286E59B5}, Name: , Value: AnkhSVN - Subversion Support for Visual StudioMSI (s) (80:94) [14:50:30:501]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders\{8770915B-B235-42EC-BBC6-8E93286E59B5}\Name,,BinaryType=0,)MSI (s) (80:94) [14:50:30:501]: Executing op: RegAddValue(Name=Package,Value={604ad610-5cf9-4bd5-8acc-f49810e2efd4},)WriteRegistryValues: Key: \SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders\{8770915B-B235-42EC-BBC6-8E93286E59B5}\Name, Name: Package, Value: {604ad610-5cf9-4bd5-8acc-f49810e2efd4}MSI (s) (80:94) [14:50:30:505]: Executing op: RegAddValue(,Value=##100,)WriteRegistryValues: Key: \SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\SourceControlProviders\{8770915B-B235-42EC-BBC6-8E93286E59B5}\Name, Name: , Value: ##100MSI (s) (80:94) [14:50:30:508]: Executing op: RegOpenKey(Root=-2147483646,K ey=SOFTWARE\Microsoft\AppEnv\9.0\Apps\myApp\2.0\ToolsOptionsPages\Source Control,,BinaryType=0,) ... I'm stuck. I was wondering if there any known bugs with the Registry tag, or maybe something I could be doing wrong? Thanks, Eric _________________________________________________________________ ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users