Klaus
Klaus

Reputation: 203

'CustomAction' to cancel install using WiX

I want a CustomAction in VBScript that make the installation cancel after running it.

Upvotes: 0

Views: 1211

Answers (2)

Ciprian
Ciprian

Reputation: 3565

Just return the correct error code from your custom action. There is a MSDN article on this, Return Values of JScript and VBScript Custom Actions.

Upvotes: 2

Yan Sklyarenko
Yan Sklyarenko

Reputation: 32250

You don't need to invent a wheel here - WiX has a standard custom action for this.

Upvotes: 1

Related Questions