I am new to Wise Package Studio, so please excuse me if this ? has been answered before.
I am using Wise Package Studio 6. Windows Installer Editor.
I have configured the removal of certain registry keys but I need to remove these keys only if a certain file exists.
I have set the search to look for the required file.
I am using an IF statement to perform other functions but how do I get the RemoveRegistry table entries to only be removed if the the IF statement is True?
0 Comments   [ - ] Hide 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


Enter the Custom Action!

You can easily add a custom action with a VBScript which checks if the file exists and, if yes, takes the appropriate action.

Start de Windows Installer Editor, go to MSI Script, Execute Deferred tab.
After ScheduleReboot add a condition IF NOT REMOVE~="ALL" and betweet it and the End statement add the Custom Action "Call VBScript from Embedded Code".
Do your scripting thing...
On the Properties page of this Custom Action set "In-Script Options" to "Deferred Execution - System Context" and set "Processing" to "Synchronous, Ignore exit code".

There you go!
Answered 01/13/2006 by: ZhuBaJie
Orange Belt

Please log in to comment
WildHair wrote a really nice article on Advanced custom action conditions. It has a really nice overview on conditions in general. It seems like you would be able to set a condition on the component containing your regremove based on the system search although I have never done this specifically before.

His post can be found Here
Answered 01/13/2006 by: xythex
Orange Senior Belt

Please log in to comment