/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: AngelD 17 years ago
Red Belt
0
What does the MSI log say?
Is your condition set to "Not Installed", looks like your condition is "NotInstalled" without the space.
Posted by: danr29 17 years ago
Purple Belt
0
My apoligies. I did set it to NOT Installed (with the space). Anyway it appears to be uninstalling fine now (with the Condition and CA I put in there). But to create a condition for Uninstall to remove the file the CA created, where would this go? (in what sequence and where in the sequence?).
Posted by: spartacus 17 years ago
Black Belt
0
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
Posted by: danr29 17 years ago
Purple Belt
0
Thank you Spartacus. I was putting the uninstall CA after the the installation CA. Works fine after changing the order of the two.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ