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

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.

Answers

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.
Answered 03/30/2005 by: VikingLoki
Second Degree Brown Belt

Please log in to comment
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.
Answered 03/31/2005 by: UcMerrill
Senior Yellow Belt

Please log in to comment
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
Answered 03/31/2005 by: VikingLoki
Second Degree Brown Belt

Please log in to comment
0
Thank you Sir
Answered 04/01/2005 by: UcMerrill
Senior Yellow Belt

Please log in to comment
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
Answered 04/01/2005 by: kapil.kathuria
Orange Belt

Please log in to comment
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.
Answered 04/01/2005 by: VikingLoki
Second Degree Brown Belt

Please log in to comment
0
Thanks Kapil.Kathuria and vikingLori. It now works. Two thumbs up.
Answered 04/06/2005 by: UcMerrill
Senior Yellow Belt

Please log in to comment
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
Answered 04/08/2005 by: UcMerrill
Senior Yellow Belt

Please log in to comment
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.
Answered 04/08/2005 by: MSIMaker
Second Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity