pancake
pancake

Reputation: 1943

How to return a value from custom action script in a VS2008 setup project

I'm creating a setup project and I need to execute a VBScript file as a custom action, but I don't know how to return a value from the script to the installation. I need to do this, because I want to decide in the script whether the installation should continue or fail.

thanks in advance.

Upvotes: 1

Views: 367

Answers (1)

Shay Erlichmen
Shay Erlichmen

Reputation: 31928

You can try to call (From the custom action script)

Err.Raise YourErrorCode

This should stop your setup with a failure.

Upvotes: 1

Related Questions