[wix-users] How to modify registry in Custom Action(s)

turik88 at yandex.ru turik88 at yandex.ru
Mon Jun 11 06:59:19 PDT 2018


Hi Harald,

The "Binary" element just is just a reference to CA library.

<Binary Id="Some.CA" 
        SourceFile="$(var.My.WixExtension.Wixlib.CustomActions.TargetDir)$(var.My.WixExtension.Wixlib.CustomActions.TargetName).CA.dll" />

Ivan

11.06.2018, 16:20, "harald goci" <harald.goci at panagenda.com>:
> Hi Ivan!
>
> I am missing the "Binary" element which you are referencing in the
> attribute "BinaryKey".
>
> BR,
> Harald Goci
> Senior Software Engineer
>
> Email: harald.goci at panagenda.com - Web: www.panagenda.com
> Phone: +43 1 890 12 89-44 - Fax: +43 1 890 12 89-15
>
> (Embedded image moved to file: pic11478.jpg)
>
> panagenda GmbH - Schreyvogelgasse 3/10 - 1010 Vienna - Austria
> Registered Office: Vienna - HG Wien - FN 293516t - VAT-ID: ATU63362738
> Executive Directors: Florian Vogler (CEO & CTO), Felix Vogler (CFO & COO)
>
> (Embedded image moved to file: pic29358.jpg)
>
> The information in this E-Mail is confidential and privileged. It is
> intended solely for the addressee. Access to this E-Mail by anyone else is
> unauthorized. If you are not the intended recipient, any disclosure,
> copying, distribution or any action taken in reliance on it is prohibited
> and will be unlawful. If you receive this message in error, please notify
> the sender immediately and delete all copies of this message.
>
> From: Ivanov Ivan via wix-users <wix-users at lists.wixtoolset.org>
> To: wix-users <wix-users at lists.wixtoolset.org>
> Cc: turik88 at yandex.ru
> Date: 11.06.2018 14:46
> Subject: [wix-users] How to modify registry in Custom Action(s)
> Sent by: "wix-users" <wix-users-bounces at lists.wixtoolset.org>
>
> Hi all,
>
> I want to write a Wix Extension, which provides an ability to add something
> to the registry on install, and remove it on uninstall.
> But 'deferred' Custom Action, which should be the right point to modify the
> registry, does not do the work. Registry does not get updated.
> I am only able to modify the registry during 'immediate' CA.
> What's wrong?
>
> <Fragment>
>
>     <CustomAction Id="RegEditPrepare" BinaryKey="Some.CA"
> DllEntry="RegEditPrepare"
>                   Execute="immediate" Impersonate="no" HideTarget="yes" />
>
>     <CustomAction Id="RegEditPrepareUninstall" BinaryKey="Some.CA"
> DllEntry="RegEditPrepare"
>                   Execute="immediate" Impersonate="no" HideTarget="yes" />
>
>     <CustomAction Id="RegEditExecute" BinaryKey="Some.CA"
> DllEntry="RegEditExecute"
>                   Execute="deferred" Impersonate="no" HideTarget="yes" />
>
>     <CustomAction Id="RegEditRollback" BinaryKey="Some.CA"
> DllEntry="RegEditRollback"
>                   Execute="rollback" Impersonate="no" HideTarget="yes" />
>
>     <CustomAction Id="RegEditUninstall" BinaryKey="Some.CA"
> DllEntry="RegEditUninstall"
>                   Execute="deferred" Impersonate="no" HideTarget="yes" />
>
>     <InstallExecuteSequence>
>       <Custom Action="RegEditPrepare" Before="RegEditExecute">
>         NOT Installed
>       </Custom>
>
>       <Custom Action="RegEditExecute" Before="StartServices">
>         NOT Installed
>       </Custom>
>
>       <Custom Action="RegEditRollback" Before="RegEditExecute">
>         NOT Installed
>       </Custom>
>
>       <Custom Action="RegEditPrepareUninstall" Before="RegEditUninstall">
>         REMOVE~="ALL"
>       </Custom>
>
>       <Custom Action="RegEditUninstall" Before="StartServices">
>         REMOVE~="ALL"
>       </Custom>
>
>     </InstallExecuteSequence>
>
>   </Fragment>
>
> Thank you in advance
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/



More information about the wix-users mailing list