[wix-users] remove old product installed without Windows Installer

Hoover, Jacob Jacob.Hoover at greenheck.com
Fri Aug 25 12:32:30 PDT 2017


Safest way is to:
A) Have your MSI block installation if it detects the presence of the older installer
B).1 Write a stub exe that can lookup the previous install and invoke it's uninstallation
B.2) Package your MSI using burn, and use the exepackage in the chain before your msi to call the stub in B.1. 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Blair Murri
Sent: Friday, August 25, 2017 10:37 AM
To: Alan Sinclair <anadem at gmail.com>; wix-users at lists.wixtoolset.org
Subject: Re: [wix-users] remove old product installed without Windows Installer

Referring to your debug installer log when the key is to set, what value does the property INNOUNINSTALL contain?



Blair Murri



Sent from my Windows 10 phone



From: Alan Sinclair<mailto:anadem at gmail.com>
Sent: Thursday, August 24, 2017 11:10 AM
To: wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
Subject: [wix-users] remove old product installed without Windows Installer



I need to check for an older version of a product which used InnoSetup installer, and if possible remove it, but I'm stuck on details so would very much appreciate any help or pointers.

InnoSetup sets its uninstall string in HKCU:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Myprod_is1
    UninstallString =
"C:\Users\AlanSinclair\AppData\Local\Programs\Myprod\unins000.exe"

So I check for the older product with this registry search, and ideally I'd run the uninstaller before proceeding with the new install - is that possible?  So far I've tried to set a launch condition, but it is triggered regardless of whether the key's set. What's wrong with this?:

<Property Id="INNOUNINSTALL">
  <RegistrySearch Id="InnoRemove"
    Root="HKCU"
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\Myprod_is1"
    Name="UninstallString" Win64='yes' Type="raw" /> </Property> <Condition Message="Previous installation of Myprod must be removed">
  <![CDATA[INNOUNINSTALL]]>
</Condition>

Do I need some kind of wrapper that does the check before starting my install?  If so, what's the simplest way to do that?

Finally, is this mailing list archived somewhere searchable, to avoid asking questions that have already been answered?

Many thanks
Alan

____________________________________________________________________
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