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
- :
- ActiveX component can't create object: 'IswiAuto16.ISWiPathVariable'
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
‎Nov 19, 2009
02:57 PM
ActiveX component can't create object: 'IswiAuto16.ISWiPathVariable'
Hello,
I am trying to update my project path variables using automation in the form of vbscript, and I keep getting the following error:
Any ideas?
Regards,
Davidg
I am trying to update my project path variables using automation in the form of vbscript, and I keep getting the following error:
"(24, 1) ActiveX component can't create object: 'IswiAuto16.ISWiPathVariable'".
Any ideas?
Dim StdIn, StdOut
Set StdIn = WScript.StdIn
Set StdOut = WScript.StdOut
Set m_ISWiProject = CreateObject("IswiAuto16.ISWiProject")
' Open Project
strFile = "My.ism"
m_ISWiProject.OpenProject strFile
Set pvs = CreateObject("IswiAuto16.ISWiPathVariables")
Set pvs = m_ISWiProject.ISWiPathVariables
For count = 0 to pvs.Count
Set pv = CreateObject("IswiAuto16.ISWiPathVariable")
Set pv = pvs.Item(count)
Next
StdOut.WriteLine "Saving Project"
m_ISWiProject.SaveProject
StdOut.WriteLine "Closing Project"
m_ISWiProject.CloseProject
Regards,
Davidg
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2009
03:47 PM
I think that you need to remove the CreateObject("IswiAuto16.ISWiPathVariables") and CreateObject("IswiAuto16.ISWiPathVariable") calls from your script.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2009
12:37 PM
I did not get a chance to implement these changes as I switched to the C# Automation Library. When I noticed that the first IswiAuto16.ISWiPathVariable was null, I am thinking this is why it had troubles.
Anyways thanks for the help,
davidg
Anyways thanks for the help,
davidg