Page 1 of 1

What is the trick to uninstalling wit MSI strings

Posted: Sun Sep 20, 2015 4:45 am
by wrc559
Hey,

So I noticed a lot of programs these days have uninstallation strings and not uninstall.exe files.
How do you go about uninstalling these programs using TTS ?

IE: ITunes uninstall location is MsiExec.exe /I{9E9CFD9F-64D6-498F-8584-E5CD08BA60BE}

However, This uninstall location changes on every PC, so you simply can't use this location for TTS uninstallation settings.

Is there a trick to this I am missing :(?

Thanks as always!!!

Re: What is the trick to uninstalling wit MSI strings

Posted: Sun Sep 20, 2015 4:59 am
by wrc559
I assume this would be ittt ???

%SystemRoot%\Installer\1105b6.msi

If this is the same for you please let me know. :)

Re: What is the trick to uninstalling wit MSI strings

Posted: Sun Sep 20, 2015 8:57 am
by Fred
In this case you can use the install package for both install and uninstall.

Examples of install commands:

Code: Select all

%ToolsDir%\ProductPackage.msi /passive /norestart
msiexec.exe /i "%ToolsDir%\ProductPackage.msi" /passive /norestart
Examples of uninstall commands:

Code: Select all

msiexec.exe /uninstall "%ToolsDir%\ProductPackage.msi" /passive /norestart
msiexec.exe /x "%ToolsDir%\ProductPackage.msi" /passive /norestart
If the product code changes at every install, this is the best option IMHO. But you need to download the package even if you just want to uninstall.

For more Windows installer command line switches run the following command:

Code: Select all

msiexec.exe /?

Re: What is the trick to uninstalling wit MSI strings

Posted: Wed Sep 23, 2015 6:54 am
by wrc559
This is my uninstallation string from HTC Sync Manager

Installation:http://dl4.htc.com/download/htc-sync-ma ... .0_htc.exe

UVK Uninstall string: MsiExec.exe /X{231D0C79-98A6-4693-A366-36DE7D7346EC}
UVK Uninstall file: C:\Windows\Installer\1105ce.msi

I tried to follow your above commands


Uninstall string: msiexec.exe /uninstall "%SystemRoot%\Installer\1105ce.msi" /passive /norestart msiexec.exe /x "%SystemRoot%\Installer\1105ce.msi" /passive /norestart

Hmm keep coming up with the windows installer log displaying the command lines.
Have I done this wrong?

Thanks.

Re: What is the trick to uninstalling wit MSI strings

Posted: Wed Sep 23, 2015 8:43 am
by Fred
Hum, those commands should run fine. Can you please post the commands in a code tag? I can't ensure they don't have a leading or trailing white spaces.

Also if you canpost a screenshot with the error message, it may help to figure out what's wrong.

Re: What is the trick to uninstalling wit MSI strings

Posted: Thu Sep 24, 2015 5:21 am
by wrc559

Code: Select all

msiexec.exe /uninstall  "%SystemRoot%\Installer\1105ce.msi" /passive /norestart msiexec.exe /x "%SystemRoot%\Installer\1105ce.msi" /passive /norestart

Re: What is the trick to uninstalling wit MSI strings

Posted: Thu Sep 24, 2015 7:43 am
by Fred
WRC, no wonder it doesn't work. You entered both commands in the same command. You need to use either

Code: Select all

msiexec.exe /uninstall  "%SystemRoot%\Installer\1105ce.msi" /passive /norestart
OR

Code: Select all

msiexec.exe /x "%SystemRoot%\Installer\1105ce.msi" /passive /norestart
Not both. Copy one of the commands above and paste it in the TTS uninstall command field, ensuring the command does not have any leading or trailing white space.

Re: What is the trick to uninstalling wit MSI strings

Posted: Thu Sep 24, 2015 10:24 am
by wrc559
Fred wrote:WRC, no wonder it doesn't work. You entered both commands in the same command. You need to use either

Code: Select all

msiexec.exe /uninstall  "%SystemRoot%\Installer\1105ce.msi" /passive /norestart
OR

Code: Select all

msiexec.exe /x "%SystemRoot%\Installer\1105ce.msi" /passive /norestart
Not both. Copy one of the commands above and paste it in the TTS uninstall command field, ensuring the command does not have any leading or trailing white space.

ahhhhhhhhh!!!!.... hehe...
Well Thank you! hope this helps other people :)

Thanks fred!

Re: What is the trick to uninstalling wit MSI strings

Posted: Thu Sep 24, 2015 10:39 am
by wrc559
Ahh, Upon testing this is a pointless procedure for software such as iTunes, Samsung Smart Switch and other mobile device backup systems.
The MSI software package when installed changes names each time it is installed, so continuous updating would be required, which is what I believe you touched on previously. :(

Re: What is the trick to uninstalling wit MSI strings

Posted: Thu Sep 24, 2015 11:18 am
by Fred
That's why I mentioned using the install packages for both install and uninstall. If the downloaded package is an MSI package, it is straight forward. If the MSI package is compressed in an exe, usually the exe passes the command line switches to msiexec.

So this should work:

Download URL:

Code: Select all

http://dl4.htc.com/download/htc-sync-manager/setup_3.1.46.0_htc.exe
Download file:

Code: Select all

%ToolsDir%\HTCSetup.exe
Install command:

Code: Select all

%ToolsDir%\HTCSetup.exe /passive /norestart
Uninstall command

Code: Select all

%ToolsDir%\HTCSetup.exe /x /passive /norestart