running custom action at install

G

Glenn M

i have a custom action in my msi that runs a batch file from the
binary table. When i uninstall i get an error saying that an action
has not completed properly. When i comment out the custom action it
uninstalls fine.

How can i make this action run only during the install , and how can i
makle a differnet action run just when i uninstall

glenn
 
P

Phil Wilson

Put a condition on it of Not Installed . That means it will run only if the
product is not already installed. To have one run during the uninstall, a
condition of REMOVE="ALL" should work. These are all case-sensitive. What
tool are you using?
 
P

Phil Wilson

Put a condition on it of Not Installed . That means it will run only if the
product is not already installed. To have one run during the uninstall, a
condition of REMOVE="ALL" should work. These are all case-sensitive. What
tool are you using?
 
P

Phil Wilson

Trying to resend, I'm not making it past the spam blockers:

Put a condition on it of Not Installed . That means it will run only if the
product is not already installed. To have one run during the uninstall, a
condition of REMOVE="ALL" should work. These are all case-sensitive. What
tool are you using?
 
B

BradyP

To run the Custom Action only at install you will need to set a
condition on the action in the InstallExecuteSequence table to (NOT
Installed).
Usually you want the actions to run at repair as well. You can you one
of the following conditions for this (NOT Installed OR REINSTALL) - or
- (NOT REMOVE)

To run an action only at uninstall use one of the following conditions
(REMOVE=ALL) - or - (Installed AND NOT REINSTALL)

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top