Is there another way to close my app in an earlier stage so that I
don't end up getting this message every time I try to uninstall?
Thanks...
You are describing the FilesInUse dialog. This pattern is where
Windows Installer automatically looks to see if any of the files to be
installed or uninstalled are locked. Since your running app has a
lock on it's EXE when it's running, you are seeing this dialog. The
only two ways no not see the dialog is
1) Ensure all processes that would call a lock are terminated
or
2) Set the REBOOT property to ReallySupress. You should not see the
FilesInUse dialog and the installer won't reboot the machine. However
your running process and locked file are not gone until after the next
system reboot.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/filesinuse_dialog.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/reboot.asp
<justice...@gmail.com> wrote in message
news:1161536243.6...@b28g2000cwb.googlegroups.com...
Ah the old post processing and related hacks that VDPROJ shoves upon
you. At my last job they had hundreds of installer class custom
actions. It was scary..... But anyways we had to have a `resequence`
file that old a post build script the proper script execution order.
It was in VBScript but I refactored it as a C# NAnt task before I left.
Quite frightening...
Don't forget that taskkill.exe is included in Windows Xp and for legacy
clients there is the resource kit utility kill.
You "could" author a Custom Action (type 34) somewhere before remove files
to terminate the process of the exe.
Just to confirm - you are stopping and uninstalling the process on Remove of
the product?
Hope this helps,
James
http://dotmsi.com
James
I haven't tried custom action (type 34) yet, I'll try tomorrow.
And yes, what I am trying to do is to stop & uninstall the process
(without getting the fileInUse message).
p.s:
Where can I find a list of custom actions types? I haven't found it
yet...
Will
Thanks again!