Issues with Custom Action
Hello all! I'm kinda new to Wise Package Studio 6 (repackaging for that matter) and I've created a custom action based on a condition. The condition is if NotInstalled and calls an embedded vbscript that creates a flagfile (.txt) file in the system32 directory during installation. I have placed this condition right before the InstallFinalize statement in the ExecuteDeferred sequence. When installing the application, everyting installs fine. When attempting to uninstall the application from add/remove programs, the application does not uninstall! It all comes down to this condition and custom action, because when I remove them from the .msi it installs/uninstalls without a problem. Is there a step that I'm missing here? Any help would be appreciated.
P.S. When creating a condition and CA for uninstall, where (in which sequence) would you place the two?
-Dan Richardson
P.S. When creating a condition and CA for uninstall, where (in which sequence) would you place the two?
-Dan Richardson
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
AngelD
17 years ago
Posted by:
danr29
17 years ago
Posted by:
spartacus
17 years ago
You should be able to place your second CA (to do the file removal) immediately before the first CA in the Deferred Execute sequence. Both CA's will be mutually exclusive based on the conditions you use on each so there is no danger of them conflicting.
Use a condition such as REMOVE~="ALL" on your second CA to make sure it only executes on the uninstallation of the application.
Regards,
Spartacus
Use a condition such as REMOVE~="ALL" on your second CA to make sure it only executes on the uninstallation of the application.
Regards,
Spartacus
Posted by:
danr29
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.