Hi,
During my Installer's Installation process I do a RegistrySearch to detect
if Firebird v1.x is installed on the client machine. If it is i want to use
the UninstallString value to uninstall Firebird. I use the following
Property and CustomAction to accomplish it:
<Property Id="FBV1EXISTS">
<RegistrySearch Id="FirebirdV1" Type="raw" Root="HKLM"
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FBDBServer_1_5_is1"
Name="UninstallString"></RegistrySearch>
</Property>
<CustomAction Id='FirebirdUninstallAction' Property='FBV1EXISTS'
ExeCommand='[FBV1EXISTS] /SILENT' Execute='immediate' Return='check'
HideTarget='no' Impersonate='no'></CustomAction>
In the InstallExecuteSequence i call my CustomAction
<InstallExecuteSequence>
<Custom Action="FirebirdUninstallAction"
After="InstallFinalize">FBV1EXISTS</Custom>
</InstallExecuteSequence>
Now the problem is that the UninstallString for Firebird is saved as
"C:\Program Files\Firebird\Firebird_1_5\unins000.exe" (the "" included)
which causes the following error:
Error 1721. There is a problem with this Windows Installer package. A
program required for this install to complete could not be run. Contact your
support personnel or package vendor. Action: FirebirdUninstallAction,
location: "C:\Program Files\Firebird\Firebird_1_5\unins000.exe", command:
"C:\Program Files\Firebird\Firebird_1_5\unins000.exe" /SILENT
Is there any way to format the UninstallString so that I can remove the "" ?
Thx,
Imri
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Removing-from-UninstallString-tp4998365p4998365.html
Sent from the wix-devs mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs