[wix-users] Adding registry key upon Uninstall

Joseph L. Casale jcasale at activenetwerx.com
Thu Nov 9 05:03:38 PST 2017


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
Of Farrukh Waheed via wix-users
Sent: Thursday, November 9, 2017 5:46 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Farrukh Waheed <farrukh1 at gmail.com>
Subject: [wix-users] Adding registry key upon Uninstall

>         <Property Id="WixQuietExecCmdLine" Value=""[#RSS.cmd]"
> -RSS"/>
>         <CustomAction Id="SS" BinaryKey="WixCA" DllEntry="WixQuietExec"
> Execute="deferred" Return="check"/>
>         <InstallExecuteSequence>
>           <Custom Action="SS" Before="RemoveFiles">Installed AND
> REMOVE</Custom>
>         </InstallExecuteSequence>

> Although installer is using Elevated Privileges, this script is not able to
> write in HKLM. Because of this failure, the installer is unable to
> Uninstall from the machine.

Have you read the documentation at http://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html?
Check the section on deferred execution and note the subtly on custom action data.

jlc



More information about the wix-users mailing list