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

Silent uninstall problem

Hi,

I have written a setup(using the latest AdvancecInstaller), in which I use the following command for the silent uninstall
msiexec.exe /qn /uninstall {2631383F-852E-4BEA-8126-FF838E8D769F} /l*v installqn.log
which works fine in most of the operating systems.

However, in Windows 8.1, it does not seem to be working.

Testcase 1:
On windows 8.1, I ran the uninstall in UI mode using the following command
msiexec.exe /uninstall {2631383F-852E-4BEA-8126-FF838E8D769F} /l*v install.log
which is working fine

Testcase 2:
On windows 8.1, I ran the uninstall in silent mode using the following command
msiexec.exe /qn /uninstall {2631383F-852E-4BEA-8126-FF838E8D769F} /l*v installqn.log
which is NOT working fine.

Please find attached the logs for the same.

Note: If you need the aip file, do let me know. Since it is huge, I have not sent it to you.
Attachments
rohs.7z
(58.51 KiB) Downloaded 302 times
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent uninstall problem

Hi Rohan,

Looking over your log file created with the "/qn" parameter, I noticed the following message: You must be an Administrator to remove this application. To remove this application, you can log on as an Administrator, or contact your technical support group for assistance.

So, please make sure that you try to uninstall the application from an administrator account and also launch the command prompt using the "Run as administrator" option.

I also tested this scenario on a Windows 8.1 machine and it worked well to me.

Best regards,
Eusebiu
Eusebiu Aria - 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: Silent uninstall problem

Thanks for the quick response

I have been using a user which belongs to "Administrators" group. I have used the same account for the "UI mode" installation, which is working fine.

When I tried with /qr, I get the following window
20141120_115511.jpg
20141120_115511.jpg (177.56 KiB) Viewed 8681 times
Untitled.png
Untitled.png (23.43 KiB) Viewed 8681 times
]

So ,is this happening because of the "User Account Control"?
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent uninstall problem

Hi Rohan,

Yes, when the application is uninstalled in silent mode, the UAC is not displayed, but the uninstallation fails because the application does not have the necessary permissions.

In order to give administrator rights to the application, you should launch the uninstallation from an elevated console (a console that is launch using the "Run as administrator" option).

Best regards,
Eusebiu
Eusebiu Aria - 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: Silent uninstall problem

Thanks. This worked.
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent uninstall problem

You're always welcome Rohan. I'm glad it worked.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”