[wix-users] Creating registry entry fails from running from MSI but works in Bundle? [Public]

Steven Ogilvie Steven.Ogilvie at titus.com
Thu Feb 2 10:14:31 PST 2017


Classification: Public
Hi folks,

I have a registry that is failing when running the MSI within an elevated CMD prompt.
Running the installer via the Bootstrapper works...

I have 2 features, and each feature writes to the same parent registry key, 1 feature creates the string value the other doesn't (they are almost exactly the same) it gives an error:

"Error 1406. Could not write value AllowUnrestrictedMicrosoftOfficeFunctionality to key \SOFTWARE\Policies\Titus Labs.  System error .  Verify that you have sufficient access to that key, or contact your support personnel."

The full log is:
MSI (s) (C4:8C) [11:27:31:842]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\Policies\Titus Labs,,BinaryType=0,,)
MSI (s) (C4:8C) [11:27:31:842]: Executing op: RegAddValue(Name=AllowUnrestrictedMicrosoftOutlookFunctionality,Value=#1,)
WriteRegistryValues: Key: \SOFTWARE\Policies\Titus Labs, Name: AllowUnrestrictedMicrosoftOutlookFunctionality, Value: #1
MSI (s) (C4:8C) [11:27:31:842]: Executing op: RegCreateKey()
WriteRegistryValues: Key: \SOFTWARE\Policies\Titus Labs, Name: , Value:
MSI (s) (C4:8C) [11:27:31:842]: Executing op: RegAddValue(Name=AllowUnrestrictedMicrosoftOfficeFunctionality,Value=#,)
WriteRegistryValues: Key: \SOFTWARE\Policies\Titus Labs, Name: AllowUnrestrictedMicrosoftOfficeFunctionality, Value: #
MSI (s) (C4:8C) [11:27:31:842]: Note: 1: 1406 2: AllowUnrestrictedMicrosoftOfficeFunctionality 3: SOFTWARE\Policies\Titus Labs
Error 1406. Could not write value AllowUnrestrictedMicrosoftOfficeFunctionality to key \SOFTWARE\Policies\Titus Labs.  System error .  Verify that you have sufficient access to that key, or contact your support personnel.
MSI (s) (C4:8C) [11:40:43:259]: Product: TITUS Classification -- Error 1406. Could not write value AllowUnrestrictedMicrosoftOfficeFunctionality to key \SOFTWARE\Policies\Titus Labs.  System error .  Verify that you have sufficient access to that key, or contact your support personnel.

The registry key/component is:

<!-- Disable Save Registry key -->
      <Component Id="cmp_DisableSave_Registry_TCO" Guid="{721924EB-02F2-4BB1-8ED5-4F067CDE79D2}" KeyPath="yes">
        <RegistryKey Id="DisableSave_Registry_TCO" Root="HKLM" Key="SOFTWARE\Policies\Titus Labs" ForceCreateOnInstall="yes">
          <RegistryValue Type="integer" Name="AllowUnrestrictedMicrosoftOfficeFunctionality" Value="[DISABLE_SAVE_OFFICE]"/>
        </RegistryKey>
      </Component>

I have a similar registrykey/value being written by another feature and it works fine (it is run before this feature)

Any help would be appreciated...

Steve







This message has been marked as Public by Steven Ogilvie on February 2, 2017 1:14:29 PM. Classification provided by TITUS.



[Latest TITUS News!]<http://www.titus.com/TMCPolicy_footer_link_landingpage.php>




More information about the wix-users mailing list