PDA

View Full Version : Stop Program running before Uninstall?



NewsArchive
10-16-2007, 02:27 AM
Hello,

My IQ-Notes program runs in the tasktray. If the user decides to uninstall
(not use) the application, I want to make sure when they run the uninstall,
that it closes the Application first.

1. Does this need to be done to have a successful uninstall?
2. How can I get the program to close when the uninstall runs?
3. Just checking ... does the Uninstall also remove it from the startup
folder?

Thank you.

robert paresi

NewsArchive
10-16-2007, 02:28 AM
Hi Robert,

You can detect an active program with the "Detect Active Application..."
script function.

What you can do is to display a message in the custom uninstall script and
ask the user to shut-down the app (in a Loop to make sure it is really
terminated).

You can also try to (gently) close the application with "Terminate Active
Application".

If the install created the startup folder item then the uninstall will
remove it (if uninstall logging was not disabled).

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
10-16-2007, 02:28 AM
Yup! Helps tremendously.

It means I spent 20 seconds adding some lines of code and you did all the
work for me.

Damn I love SetupBuilder!

-Robert