/build/static/layout/Breadcrumb_cap_w.png

Stopping a Running Application

Greetings all.

Just a very quick and probably dumb question.

Using Wise Package Studio we have created an MSI for an application. Installs beautifully and after reboot runs (any way to get it to start straight away?).

The problem comes when trying to uninstall the application. The programs run in the background to do I don't know what, and when we go to uninstall the MSI the uninstall says that we should stop the application first.

I know there is a way to do it with a service, is there a way to get the MSI to close/stop the application running at uninstall?

Many thanks

Collin

0 Comments   [ + ] Show comments

Answers (4)

Posted by: bheers 18 years ago
Second Degree Blue Belt
0
TASKKILL /IM notepad.exe /f
replace notepad.exe with the program executable that needs to be closed during uninstall
use this in creating a custom action in Wise script and put it in execute immediate and condition it 'if REMOVE~="ALL"'
Posted by: CollinF 18 years ago
Senior Yellow Belt
0
Many thanks for the speedy reply! I'll give it a go now :)
Posted by: yarborg 18 years ago
Blue Belt
0
PsKill.exe works really well too. It even kills task running under the system account when logged on as an administrator. You can get it free from www.systernals.com. I believe the command line works like this pskill.exe -f (force it to close) notepad.exe.
Posted by: WiseUser 18 years ago
Fourth Degree Brown Belt
0
The programs run in the background to do I don't know what, and when we go to uninstall the MSI the uninstall says that we should stop the application first.

I don't suppose it runs as a service does it?

If so, you should consider using a combination of the "ServiceInstall" and "ServiceControl" tables.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ