What is the trick to uninstalling wit MSI strings

Post tutorials and script examples in this forum.
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

What is the trick to uninstalling wit MSI strings

Post 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!!!
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post by wrc559 »

I assume this would be ittt ???

%SystemRoot%\Installer\1105b6.msi

If this is the same for you please let me know. :)
Fred
Site Admin
Posts: 2357
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post 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 /?
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post 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.
Fred
Site Admin
Posts: 2357
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post 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.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post by wrc559 »

Code: Select all

msiexec.exe /uninstall  "%SystemRoot%\Installer\1105ce.msi" /passive /norestart msiexec.exe /x "%SystemRoot%\Installer\1105ce.msi" /passive /norestart
Attachments
HTC Sync specific
HTC Sync specific
HTC SYNC.png (612.86 KiB) Viewed 12063 times
Fred
Site Admin
Posts: 2357
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post 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.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post 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!
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post 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. :(
Fred
Site Admin
Posts: 2357
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: What is the trick to uninstalling wit MSI strings

Post 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
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Post Reply