I am using Microsoft Visual Studio .Net to create the setup project.
I have finally figured out how to start the installed exe (a dialog
application in MFC) right after the installation finishes. But now I am
having a problem trying to stop it before uninstall starts removing the
files. It will ask the user to manually stop the exe file.
How do I add custom functions either before or during uninstall? It
seems that the Custom Action for "Uninstall" will only be activated AFTER
uninstal finishes.
Any comments will be a great help.
Thank you,
Cinthia
I'm a bit surprised that Windows Installer doesn't automatically give you a
prompt to shutdown the program. If I install notepad.exe somewhere and run
it, the uninstall prompts me to close it down, so that might be something to
do with your dialog app description.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.installsite.org/pages/en/msi/books.htm
"Cinthia Lee" <cinth...@hotmail.com> wrote in message
news:uTdvc%23WPEH...@TK2MSFTNGP09.phx.gbl...
I thought I replied to the group earlier, but couldn't find the posting
anymore... Hmm... probably made a mistake somewhere...
Anyway, my problem right now is that I have a setup project in Microsoft
Visual Studio .Net. I used to use InstallShield in my previous company and
it allows me to do things like shutdown a service or kill a running exe
during uninstallation.
However, I can't seem to do that in Visual Studio .Net. I have a setup
program that will run the installed exe file right after the installation is
complete. And since the exe file is running in the background, there is no
UI for the user to see or to terminate. I am hoping to find a solution to
terminate the program gracefully during the uninstall so the uninstall can
remove all the files nicely.
To simplify my question: Is it possible to carry out custom actions(kill
a process, write to the registry, etc.) right after the unsintallation
starts?
Thank you, and looking forward to any comments,
Cinthia
"Phil Wilson" <pdjw...@nospam.cox.net> 在郵件
news:ePZNpQBQ...@TK2MSFTNGP11.phx.gbl 中撰寫...
"Cinthia Lee" <cinth...@hotmail.com> wrote in message
news:%237GnZ0j...@TK2MSFTNGP12.phx.gbl...
In our case we engineered our app to shut it's self down if you try
and run it again with a -EXIT switch. I did not code this so I don't
know exactly what that takes, but in essense I just run a CA during
uninstall as follows: app.exe -EXIT
Hope this helps!
---JHG
"Phil Wilson" <pdjw...@nospam.cox.net> wrote in message news:<#sEERvyQ...@TK2MSFTNGP11.phx.gbl>...