cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
samsal
Level 4

using VBScript with ISWiCustomAction

Hi,

Im trying to create VBScript of type "stored in Custom action", type number 38.
I can do that with the following line of code :

ISWiCustomActionVBScriptCustomAction = iswiProject.AddCustomAction("SampleVBAction");
MSIExecUnInstallCustomAction.ActionType = 38;


But where do I specify the VB script? I cant see or find any propertry where you can specify the VB script inside! Or am I looking into the wrong API classes for that ?

Please Help
Labels (1)
0 Kudos
(1) Reply
hidenori
Level 17

You need to set it to the Target property:

MSIExecUnInstallCustomAction.Target = "MsgBox 'Test'";
0 Kudos