This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- using VBScript with ISWiCustomAction
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 09, 2008
03:05 PM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 09, 2008
04:53 PM
You need to set it to the Target property:
MSIExecUnInstallCustomAction.Target = "MsgBox 'Test'";
MSIExecUnInstallCustomAction.Target = "MsgBox 'Test'";