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
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)
Please log in to answer
Posted by:
Inabus
17 years ago
Posted by:
FrankSpierings
17 years ago
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.
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
17 years ago
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.
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.