/build/static/layout/Breadcrumb_cap_w.png

Install \ Uninstall Condition

Hi Guys.

Hope someone can help.

I have in my msi two vbscript custom actions. One action installs a certain shortcut in to the allusers desktop which works and it fine. The second vbscript removes the shortcut if the application is uninstalled.

The problem is when i uninstall my application i see it remove the shortcut but it is then running the first vbscript and putting the icon back.

I am thinking i need a install or uninstall condition but dont know what i need or the syntax

Can anyone help me please

Thanks in advance

0 Comments   [ + ] Show comments

Answers (6)

Posted by: Inabus 16 years ago
Second Degree Green Belt
0
Find attached the conditions to use on your custom actions:

First -time installation: Not Installed
Any maintenance type: Installed
Uninstallation: REMOVE="ALL" (Please note the case on this, it is needed!)

Regards,
Paul
Posted by: FrankSpierings 16 years ago
Orange Senior Belt
0
That is correct.

More information on conditions can be found here http://itninja.com/blog/view/appdeploy:-articles:-msi-advanced-custom-actions or in the Windows Installer SDK documentation.

For installation only:
NOT Installed

For removal only:
REMOVE~="ALL"

Edit Inabus was quiker ;) Although my removal condition is somewhat more bug proof.
Posted by: anonymous_9363 16 years ago
Red Belt
0
And finally, for information purposes, the change Frank made to the condition (REMOVE~="ALL" as opposed to REMOVE="ALL") tells the installer to ignore case in the REMOVE property. Thus, the user could add REMOVE="all" or 'REMOVE="ALL" or REMOVE="aLl" an they would all work. As it was in the original condition, only REMOVE="ALL" would work.
Posted by: Inabus 16 years ago
Second Degree Green Belt
0
May be more bug proof but mine came from the MS site :p
Posted by: FrankSpierings 16 years ago
Orange Senior Belt
0
Well thats why mine is more bug proof hahahahaha ;)
Posted by: Inabus 16 years ago
Second Degree Green Belt
0
lol, too true unfortunatly!
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