Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Uninstallation Script- Wise Installation Studio

Updated: 21 May 2010 | 5 comments
Vinoth Sundaramahalingam's picture
0 0 Votes
Login to vote

Hi,

Can we script in Wise Installation Studio to uninstall the product which will clear all the application related contents along with the files created during application runtime.

It would be great if the uninstallation process invokes an assembly which contains a method to override Uninstall class.

Thanks in advance.

Comments

EdT's picture
04
Jun
2009
0 Votes 0
Login to vote

Yes

Wise Installation Studio can be used to create uninstalls which clear all application related contents along with the files created during application runtime.

I don't understand:
"It would be great if the uninstallation process invokes an assembly which contains a method to override Uninstall class."

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Vinoth Sundaramahalingam's picture
05
Jun
2009
0 Votes 0
Login to vote

Can we invoke an assembly

Can we invoke an assembly during uninstallation which has a method to override Uninstall class. Is there any custom action to do the same.

EdT's picture
05
Jun
2009
0 Votes 0
Login to vote

You will need to write your own custom action

There is no pre-existing custom action to invoke an assembly during uninstall.

However, if you can perform this process from a command line, then you should be able to write a custom action to do exactly the same job.

Then all you need to do, is to add a condition on the custom action of:  REMOVE="ALL"
and this will ensure that the custom action runs only on uninstall. Ensure that the condition is written entirely in upper case.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Vinoth Sundaramahalingam's picture
06
Jun
2009
0 Votes 0
Login to vote

Need some clarifications

EdT,

Thanks for your comments.

Is REMOVE="ALL" the point of invocation, to call an assembly during uninstallation. And should we script this in "Execute Immediate". Please help me on this. Thanks.

AngelD's picture
06
Jun
2009
0 Votes 0
Login to vote

Uninstall condition: REMOVE="ALL"

Yes, use that condition when you want something to be executed during removal, what this means is that the condition will resolve to true if all features are to be removed during uninstall.

Any custom action making changes to the system should be executed in deferred sequence under the System context.