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

Blair Murri osito at live.com
Fri Aug 25 08:36:44 PDT 2017


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/



More information about the wix-users mailing list