Uninstall of setup.exe or non MSI applications

(imported topic written by slybel)

Good morning all.

Hi to Brolly. We had training last January of this year up north in Canada!

Here’s our problem. We need to uninstall 3rd party applications that do not have MSIs. The MSIs with msts are easy to uninstall. I have looked everywhere… sites, forums etc…

Here’s what we have right now.

TASK: _Deploy Entrust 7.0 - QA

Actions:

download http://server/Uploads/0a5252791acea6608cad57debb3fbccf3e901ecd/big20.tmp

continue if { (size of it = 16221203 and sha1 of it = “0a5252791acea6608cad57debb3fbccf3e901ecd”) of file “big20.tmp” of folder “__Download”}

extract big20.tmp

wait __Download\EntrustSetup\Entrust7.exe /s

Relevance:

(name of operating system = “WinXP”) AND TRUE AND (exists file “msiexec.exe” of system folder) and (not exists file “entell50.exe” whose (version of it = “7.0.0.548”) of folder “C:\Program Files\Entrust\Entelligence” )

This works like a charm.

But here is the not working uninstall:

TASK: _Uninstall Entrust 7.0 - QA

Actions:

download http://server/Uploads/0a5252791acea6608cad57debb3fbccf3e901ecd/big20.tmp

continue if { (size of it = 16221203 and sha1 of it = “0a5252791acea6608cad57debb3fbccf3e901ecd”) of file “big20.tmp” of folder “__Download”}

extract big20.tmp

wait {(value “UninstallString” of keys whose (exists value “displayname” of it AND value “displayname” of it as string as lowercase contains “entrust” AND exists value “UninstallString” of it) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry as string) & " /uninst"}

Relevance:

(name of operating system = “WinXP”) AND TRUE AND (exists file “msiexec.exe” of system folder) and (exists file “entell50.exe” whose (version of it = “7.0.0.548”) of folder “C:\Program Files\Entrust\Entelligence” )

qna:

q:(value “UninstallString” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Entrust” of registry)

A: C:\WINDOWS\etuninst.exe

T: 0.094 ms

I: singular registry key value

And the same goes for this application as well:

Task: _Uninstall FirstClass 8.0 - QA

Actions:

download http://server/Uploads/664b0532f793b2af911204c048c377a0e383d548/big102.tmp

continue if { (size of it = 5952303 and sha1 of it = “664b0532f793b2af911204c048c377a0e383d548”) of file “big102.tmp” of folder “__Download”}

extract big102.tmp

wait RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\09\01\Intel32\Ctor.dll,LaunchSetup “C:\Program Files\InstallShield Installation Information{5B35C417-2649-11D6-83D1-0050FC01225C}\Setup.exe” -l0x9 -uninst

qna:

q: value “UninstallString” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{5B35C417-2649-11D6-83D1-0050FC01225C}” of registry

A: RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\09\01\Intel32\Ctor.dll,LaunchSetup “C:\Program Files\InstallShield Installation Information{5B35C417-2649-11D6-83D1-0050FC01225C}\Setup.exe” -l0x9 -uninst

T: 0.102 ms

I: singular registry key value

thank you !!!

(imported comment written by slybel)

bump…

(imported comment written by BenKus)

slybel,

What happens when you execute this action? Does it uninstall but not silently? And what happens if you run the uninstall string from the command-line?

Ben

(imported comment written by slybel)

The only thing that I succeded with Entrust is this line:

wait C:\WINDOWS\etuninst.exe

But I have then to click yes or no manualy to uninstall on the client pc. I could not find any switches.

Take Java 1.4 for example.

Here are the relevances that I have:

q: (name of operating system = “WinXP”) AND TRUE AND (exists file “msiexec.exe” of system folder) AND not(exists key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{7148F0A8-6813-11D6-A77B-00B0D0142130}” of it AND exists value “DisplayVersion” whose (it as string = “1.4.2_13”) of key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{7148F0A8-6813-11D6-A77B-00B0D0142130}” of it) of registry

A: False

T: 0.477 ms

I: singular boolean

UNINSTALL:

q: value “UninstallString” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{7148F0A8-6813-11D6-A77B-00B0D0142130}” of registry

A: MsiExec.exe /I{7148F0A8-6813-11D6-A77B-00B0D0142130}

T: 3.267 ms

I: singular registry key value

The uninstall on the CMD prompt that works is: MsiExec.exe /x {7148F0A8-6813-11D6-A77B-00B0D0142130} /q

Into Bigfix, I tried these lines but did not work:

1- MsiExec.exe /x {7148F0A8-6813-11D6-A77B-00B0D0142130} /q

2- “{pathname of system folder & “\msiexec”}” /x “{7148F0A8-6813-11D6-A77B-00B0D0142130}” /q

anyway.

Thanks for all.

(imported comment written by BenKus)

Ahh… Yes… Don’t forget that the “{” character is used for relevance substitution and needs to be escaped (by adding another “{”). Try this:

wait MsiExec.exe /x {{7148F0A8-6813-11D6-A77B-00B0D0142130} /q

Ben

(imported comment written by slybel)

Okay!!!

Thanks… most are working now!!!

(imported comment written by rdamours91)

Good work guys…

Just ran into the same issue…problem solved. :slight_smile:

(imported comment written by slybel)

Good morning.

I still have the issue where some applications are not uninstalling silently or would need a Yes/No answer to remove.

wait RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\09\01\Intel32\Ctor.dll,LaunchSetup “C:\Program Files\InstallShield Installation Information{{5B35C417-2649-11D6-83D1-0050FC01225C}\Setup.exe” -l0x9 -uninst

thank you.

(imported comment written by BenKus)

Each application behaves differently for silent install/uninstall…

Try this:

wait RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\09\01\Intel32\Ctor.dll,LaunchSetup “C:\Program Files\InstallShield Installation Information{{5B35C417-2649-11D6-83D1-0050FC01225C}\Setup.exe” -l0x9 -uninst -S

If that doesn’t work, you can consider creating an InstallShield “response file”, which is how InstallShield deals with silent install/uninstall:

http://helpnet.acresso.com/robo/projects/installshield11helplib/CreatetheResponseFile.htm

Ben

(imported comment written by cstoneba)

I am having this problem too, but Citrix Program Neighborhood Agent for me. Has anyone found a work around?