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
- :
- Automation Interface Question
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
‎Aug 29, 2008
08:17 AM
Automation Interface Question
I am having a couple problems. They may be due to my lack of VBScript experience, but I have searched the forum and the web without finding anything helpful.
1. I cannot get the CreateProject method to work. I copied and pasted the code from the Help Library, but eptMsi doesn't have a value. Why is this? The code is
after I remove the As Y parts (see #2) and add the echo.
2. In some places, the examples use something like
However, I get an "expected end of statement" error at (line, 7) (the A in As). Why is this?
Thank you.
1. I cannot get the CreateProject method to work. I copied and pasted the code from the Help Library, but eptMsi doesn't have a value. Why is this? The code is
Dim pProject
Set pProject = CreateObject("ISWiAuto15.ISWiProject")
Dim sProjectName
sProjectName = "C:\InstallShield 2009 Projects\TestProject.ism"
wscript.echo eptMsi
pProject.CreateProject sProjectName, eptMsi
pProject.OpenProject sProjectName, False
pProject.CloseProject
after I remove the As Y parts (see #2) and add the echo.
2. In some places, the examples use something like
Dim X As Y
However, I get an "expected end of statement" error at (line, 7) (the A in As). Why is this?
Thank you.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 29, 2008
10:20 AM
Per my limited knowledge of VB and VBScript, the former supports Dim X as Y; the latter does not. The example in the help is VB, not VBS. Chances are good that most VB examples can be turned into VBS files with minimal changes (such as removing the as Y, and replacing constants like eptMsi with their integer values), but this is not guaranteed.
I think that wscript object is also not likely to be available in the Windows Installer support for VBScript, at least unless you create it yourself.
I think that wscript object is also not likely to be available in the Windows Installer support for VBScript, at least unless you create it yourself.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 29, 2008
01:36 PM
Actually, the wscript.echo works. Is there a list of the values for the constants like eptMsi?
Also, how would I go about modifying the dialog boxes that are displayed during install? Is this possible through the Automation Interface?
Also, how would I go about modifying the dialog boxes that are displayed during install? Is this possible through the Automation Interface?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 29, 2008
02:52 PM
We usually try to document the constant values, but seem to have missed that one; please try these:
(If you have Microsoft's OLE/COM Object Viewer, you can export an IDL file containing these and other values for ISWiAuto15.)
- eptMsi = 1 (Basic MSI)
- eptMsm = 2 (merge module)
- eptPro = 9 (InstallScript)
- eptProObj = 10 (InstallScript Object)
(If you have Microsoft's OLE/COM Object Viewer, you can export an IDL file containing these and other values for ISWiAuto15.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 30, 2008
09:08 PM
Everything in vbscript is a variant. Also unless you do an option explicit statment, you don't even have to declare any variables.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 31, 2008
07:51 AM
Can I modify the dialog boxes from the automation interface?
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)