[wix-users] help with wix uninstall setting property to a registry entry for a customaction

Phill Hogland phill.hogland at rimage.com
Thu Jun 9 10:49:46 PDT 2016


>>It seems "util:RegistrySearch" needs to be just "RegistrySearch" is this a
 bug ??

I don't think so.  util:RegistrySearch is not intended for what you are trying to do, as documented.  It should be used in a bundle (setup) project, not an msi project.

Also it is bad practice and probably not reliable to try and change the state of the computer in an immediate CA.

You also might want to look at SetProperty.
________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Shomari Sharpe <shomari.sharpe at gmail.com>
Sent: Thursday, June 9, 2016 12:27:00 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] help with wix uninstall setting property to a registry entry for a customaction

Hi,
I figured out the problem it seems using the following code to set the
value of a custom action from the registry does not work:

<property Id="UNINSTALLCOMMAND">
   <uil:RegistrySearch
     root="HKLM"
     key="Software\ShomySoft\myprogram"
    value="programpath" />
</property>

<CustomAction
    Id="SQLiteUninstallODBC_EXE"
    Property="SQLiteUninstallODBC"
    Value="[UNINSTALLCOMMAND]"
    Execute="immediate" />

-------------------------------------------------
It seems "util:RegistrySearch" needs to be just "RegistrySearch" is this a
bug ??

Regards,

Shomari


On Wed, Jun 8, 2016 at 10:06 AM, Farrukh Waheed <farrukh1 at gmail.com> wrote:

> attachments are blocked in this mailing group. Better share code content in
> the e-mail.
>
> On 7 June 2016 at 12:29, Shomari Sharpe <shomari.sharpe at gmail.com> wrote:
>
> > From: Shomari Sharpe <shomari.sharpe at gmail.com>
> > To: wix-users at lists.wixtoolset.org
> > Cc:
> > Date: Tue, 7 Jun 2016 02:57:27 -0500
> > Subject: Fwd: Help with wix!!
> >
> > Hi,
> > I have a serious problem that i've been googling and experimenting with
> for
> > over a week now. It has to do with setting a custom actions property to a
> > registry value containing a command to uninstall a sqlite odbc driver.
> I've
> > attached my wxs file. It appears that the property value is not being set
> > at all but if i hardcode a string value it works.
> >
> >
> > Thanks for your help,
> > Shomari Sharpe
> >
> > ____________________________________________________________________
> > 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