We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Quiet Uninstallation

Hi,

I have written a setup in which I make use "single exe setup(resources inside)"(e.g. Setup.exe)

I also understand that for uninstalling it quietly, I need to execute the following command
msiexec.exe /x ProductCode /qb

As I also understand that ProductCode changes for every upgrade. Is there any way to uninstall this without making use of the ProductCode?(e.g. setup.exe /uninstall /qb)

Regards,
Rohan
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Quiet Uninstallation

Hi Rohan,

I'm afraid this is not possible. Our bootstrapper does not have a command line switch that you can use to trigger an uninstall.
This was never requested according to our internal request, all users that required silent uninstall just called msiexec.exe and passed the product code.

What is your usage scenario? Maybe I can help you find another solution.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Quiet Uninstallation

Hi Bogdan,

Following is the scenario
- I have a setup.exe(e.g. TSP) in which I have supported the quiet installation. This would be installed by SCCM.
So, in an big organization, its possible that it could have machines having different versions of this product.
- Now if the Administrator wants to uninstall this product, how can he uninstall this(using SCCM)?
From your explanation in some of the posts, I understand that the "Product Code" would be different for every version of the product. So does he need to know all product codes(i.e different versions), and try executing one by one?
Or is there a simple process to uninstall a product?

Do let me know if something is not clear?

Regards,
Rohan
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Quiet Uninstallation

Hi
shetty_rohan wrote:From your explanation in some of the posts, I understand that the "Product Code" would be different for every version of the product. So does he need to know all product codes(i.e different versions), and try executing one by one?
msiexec /x requires the product code, thus you would need to find it from the Uninstall Registry Key before execution.
shetty_rohan wrote:Or is there a simple process to uninstall a product?
You could uninstall a product using PowerShell or WMIC knowing only the name of your application with a command like this:

Code: Select all

C:\Windows\system32> wmic product where "name = 'AI f26518'" call uninstall

Executing (\\TEODOR-PC\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{C0324FB1-460D-4BC6-8A4F-D103EAEDE399}",Name="AI f26518",Version="1.0.0")->Uninstall()
Method execution successful.
If you have other questions, please let us know.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Quiet Uninstallation

Thanks Teodor.

msiexec workis fine
msiexec.exe /qn /uninstall {B4FC456A...}

I get a problem with wmic
C:\Documents and Settings\rohs>wmic product
Node - ROHS
ERROR:
Code = 0x80041001
Description = Generic failure
Facility = WMI

Question: Any idea how is the uninstall done using the SCCM?

Regards,
Rohan
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Quiet Uninstallation

Hi
shetty_rohan wrote:I get a problem with wmic
C:\Documents and Settings\rohs>wmic product
Node - ROHS
ERROR:
Code = 0x80041001
Description = Generic failure
Facility = WMI
This might be caused by an older version of WMI that doesn't support the "product" query. Please read WMIC Snippets article for a solution.
shetty_rohan wrote:Question: Any idea how is the uninstall done using the SCCM?
A Sysadmin doesn't need the ProductCode of your application to be able to uninstall it using SCCM.

If you have other questions, please let us know.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Quiet Uninstallation

Thanks for your answers.

Return to “Building Installers”