vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Uninstall using Custom Action

Hi all,
I have one console application for uninstallation of driver,and that added in custom action(launch file).And that application has some commands and file operations. So that application will only work if we run "Run as Administrator".For that I have checked "Run as administrator" option in advanced installer project(custom action). But that is not working. Can anyone solve my problem?.So if we check "Run as administrator" option,that console application will run under admin priviledges right?
I have attached the image also.Please anyone check and give me the solution.


Thanks,
Vijay.
Attachments
Uninstall.PNG
Uninstall.PNG (104.23 KiB) Viewed 5528 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall using Custom Action

Hello,

Does your .exe file run properly outside the setup project? If so, can you please give us an example about how do you manually launch it?

Also, please make sure the "Run as administrator" option is enabled only in one place into your setup project: either in "Install Parameters" page or from the custom action configuration. If the "Run as administrator" option is checked both in "Install Parameters" page and in your custom action configuration, due to an AI limitation, your .exe file may not run properly.

If your .exe file runs properly outside the project, then another solution will be to create a .bat file which launches the .exe file. Then launch the that .bat file with a "Launch file" custom action. Please take a look on our "Launch a CMD or BAT file" article for more details.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Uninstall using Custom Action

Hi Daniel,
Thanks for your reply. It is working fine with fresh PC. If we do multiple times installation,installation process getting very slow.After that installation failed. In verbose log its showing "installation taking more time".




Thanks,
Vijay.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall using Custom Action

Hello Vijay,

After the installation fails can you try to manually launch your uninstall driver application and see if it succeeds?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Uninstall using Custom Action

Hello Daniel,
Thanks for your reply. Now its working fine.

Thanks,
Vijay.

Return to “Common Problems”