/build/static/layout/Breadcrumb_cap_w.png

REMOVE="ALL"

Hi,

If anyone can help me I would greately appreciate it. Here is my issue.

I am using wise package studio 5.5 and using a VB Script Embedded code to rename a folder after installation Eg ( C:\test\1 to C:\test\2). The code is placed in installer editor--Execute Immediate and beneath the word RemoveExistingProducts wich works fine.

The issue I am having is that during uninstall i need to rename the folder back to its original name Eg (C:\test\1) so that it can be uninstall.
I Know that i have to use the REMOVE="ALL" Properties. I am not sure where exactly to place it. And shoud it be in the Execute Immediate portion of installation sequence or the Execute Deferred portion of the installation sequence?
Any help or suggestions will greately appreciated

0 Comments   [ + ] Show comments

Answers (9)

Posted by: VikingLoki 19 years ago
Second Degree Brown Belt
0
Take the custom action you created to rename the folder on install and put it between an IF NOT REMOVE THEN... ...END. Immediately after that, put another IF THEN with the condition of IF REMOVE. Put your uninstall rename in there.
Posted by: UcMerrill 19 years ago
Senior Yellow Belt
0
Not sure if I am doing it right. Is it possible for you type in on a line for me? All i have is an embedded vb code the rename the file after install after the installFinalize in the Execute Immediate tab.
Posted by: VikingLoki 19 years ago
Second Degree Brown Belt
0
Build the lines using the Actions list on the left. It should look something like this, if your copying custom actions are named "RenameOnInstall" and "RenameOnUninstall"

If NOT REMOVE then
| Call VBScript From Installation (RenameOnInstall)
End
IF REMOVE then
| Call VBScript From Installation (RenameOnUninstall)
End
Posted by: UcMerrill 19 years ago
Senior Yellow Belt
0
Thank you Sir
Posted by: kapil.kathuria 19 years ago
Orange Belt
0
Better and recommended condition by microsoft are:

If NOT Installed then
| Call VBScript From Installation (RenameOnInstall)
End
IF REMOVE="ALL" then
| Call VBScript From Installation (RenameOnUninstall)
End
Posted by: VikingLoki 19 years ago
Second Degree Brown Belt
0
Yeah, that is better. I think I got this one confused with the person who was asking about kicking in a CA on install & repair and another CA on uninstall.
Posted by: UcMerrill 19 years ago
Senior Yellow Belt
0
Thanks Kapil.Kathuria and vikingLori. It now works. Two thumbs up.
Posted by: UcMerrill 19 years ago
Senior Yellow Belt
0
I did have a problem uninstalling the folder after I install it. I made the adjustment and here is the info for everyone to see.

Go to Windows installer Editor MSI Script tab below Execute Immediate tab below and add your embedded code beneath the word RemoveExistingProducts. The code should look like this:

If NOT REMOVE=”ALL” then
call VBscript from embedded code (to rename folder after installation)
End


Go to Windows installer Editor MSI Script tab below Execute Immediate tab below and add your embedded code beneath the word LaunchConditions. The code should look like this:

If REMOVE=”ALL” then
Call VBscript from embedded code ( rename folder during uninstall)
End

Enjoy
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
I generally use

If REMOVE~=”ALL” then
Call VBscript from embedded code ( rename folder during uninstall)
End

The ~ ensures that the ALL can be non case sensitive. So the Windows Installer service see's it no matter what the vendor may have specified as Installed.
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