/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide 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.
Answer this question or Comment on this question for clarity

Answers

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
Answered 09/24/2007 by: Inabus
Second Degree Green Belt

Please log in to comment
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.
Answered 09/24/2007 by: FrankSpierings
Orange Senior Belt

Please log in to comment
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.
Answered 09/24/2007 by: VBScab
Red Belt

Please log in to comment
0
May be more bug proof but mine came from the MS site :p
Answered 09/24/2007 by: Inabus
Second Degree Green Belt

Please log in to comment
0
Well thats why mine is more bug proof hahahahaha ;)
Answered 09/24/2007 by: FrankSpierings
Orange Senior Belt

Please log in to comment
0
lol, too true unfortunatly!
Answered 09/24/2007 by: Inabus
Second Degree Green Belt

Please log in to comment