Hello all,

I have a custom action - run program from installation, Normal Execute Immediate/Deferred, Deferred - system context, Asynch No wait... it has the following condition statement:
NOT Installed OR REINSTALL OR ReinstallRepair

I basically want it to run everywhere BUT when uninstalling. However, the action IS running when I uninstall it. Any ideas?

Thanks!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Whilst I do not immediately see what's wrong with your current condition, I'd suggest replacing it with Not REMOVE~="All" to get the effect you desire.
Answered 04/11/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
Yeah, I thought what I had originally would have taken care of it too, but adding NOT REMOVE="ALL" to my condition did the trick. Thanks!
Answered 04/11/2011 by: DevilsArcade
Senior Yellow Belt

Please log in to comment
0
From memory, I think the 'Installed' state changes immediately an uninstall is selected and it's reinstated if the uninstall is rolled back.

A quick test with a simple MSI or a run through your tool's debugger would confirm if that's right.
Answered 04/11/2011 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity