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

Justin Cox cox.justin.a at gmail.com
Thu Feb 2 10:23:31 PST 2017


Still won't give you the elevation.  It's part of the UAC and requesting.
There's no way to elevate the action out of sequence.

On Thu, Feb 2, 2017 at 10:22 AM Steven Ogilvie <Steven.Ogilvie at titus.com>
wrote:

> Classification: Public
> I ran the MSI's via an elevated CMD prompt (run as Administrator, logged
> in as user with local/domain Administrator rights), it is not a custom
> action is is the WiX RegistryKey/ RegistryValue elements
>
>
> This message has been marked as Public by Steven Ogilvie on February 2,
> 2017 1:22:14 PM. Classification provided by TITUS.
>
>
>
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Justin Cox
> Sent: February 2, 2017 1:20 PM
> To: WiX Toolset Users Mailing List (wix-users at lists.wixtoolset.org) <
> wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] Creating registry entry fails from running from
> MSI but works in Bundle? [Public]
>
> Steve, since you're writing to HKLM, it requires elevated privileges.
> Ensure that this is run during the InstallExecute sequence.  Bootstrapper
> gives you elevated privileges during the whole process, so it must be a
> scheduling issue.
>
> On Thu, Feb 2, 2017, 10:14 AM Steven Ogilvie <Steven.Ogilvie at titus.com>
> wrote:
>
> > 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 <(214)%20748-3646>
> ,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>
> >
> >
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list