Window Installer custom action BEFORE any validation

Posted by Marc on Stack Overflow See other posts from Stack Overflow or by Marc
Published on 2010-04-27T12:26:44Z Indexed on 2010/04/28 6:33 UTC
Read the original article Hit count: 405

I wrote a Windows Installer custom action based on the tutorial found here: http://www.codeproject.com/kb/install/msicustomaction.aspx

My custom action is killing a background process of a given name which could still be opened by the user. The reason is that I don't want users to see the warning that a given EXE is running and must be closed so that setup can continue. This works fine when the MSI passes through the UI sequence as the action is created in "InstallUISequence" table like in the tutorial.
However, when the MSI is used silently (right-click and select repair or uninstall), then my custom action isn't executed of course.

Where do I have to put my custom action so that it is executed immediately also when run silently?

I tried adding it to "InstallExecuteSequence", but the 'app running' warning is still shown. I then tried lowering the sequence number of my custom action to 5, but this also didn't help.

Note:
I'm using Orca to modify an MSI generated from a Visual Studio setup project. I'm then using the transform file to apply it.

© Stack Overflow or respective owner

Related posts about msi

Related posts about windows-installer