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
- :
- Any solution to this problem?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Oct 29, 2010
04:06 AM
problem using iswiautomation in is2011
Hi,
used my vbscript since IS2009 but now i am experiencing some problems in Is2011 ...
my script looks like this:
Set oProject = CreateObject("ISWiAuto17.ISWiProject")
oProject.OpenProject "D:\IS2011 Projects\Test\Test.ism"
oProject.ISWiProductConfigs("Product Configuration 1").ISWiReleases("Release 1").Build()
oProject.SaveProject
oProject.CloseProject
Set oProject = Nothing
my script won't compile anymore, the error looks like
...\test.vbs(2, 1) ISWiAuto17: Automation error
> ISWiAutomation.ISWiRelease.BuildInternal
> ISWiAutomation.ISWiRelease.Build
any ideas?
thanks mary
used my vbscript since IS2009 but now i am experiencing some problems in Is2011 ...
my script looks like this:
Set oProject = CreateObject("ISWiAuto17.ISWiProject")
oProject.OpenProject "D:\IS2011 Projects\Test\Test.ism"
oProject.ISWiProductConfigs("Product Configuration 1").ISWiReleases("Release 1").Build()
oProject.SaveProject
oProject.CloseProject
Set oProject = Nothing
my script won't compile anymore, the error looks like
...\test.vbs(2, 1) ISWiAuto17: Automation error
> ISWiAutomation.ISWiRelease.BuildInternal
> ISWiAutomation.ISWiRelease.Build
any ideas?
thanks mary
(8) Replies
‎Nov 12, 2010
01:58 PM
Bummer ... I want to use the same computer for IS2009 and IS2011 projects, at least for awhile. Is there no way to use automation to kick off IS2011 projects unless it is the only installed version of InstallShield??!
Anyone know? :confused:
Anyone know? :confused:
‎Nov 15, 2010
10:48 AM
This code works for me in Visual Build Pro 7.7 (using it in the Script Editor associated with building an InstallShield 2011 project; works with msi projects and installscript msi projects). It should work with any other build tool or automated script as well.
Use the horizontal scroll bar to see all of the code.
Use the horizontal scroll bar to see all of the code.
Sub vbld_StepStarted()
Dim pInstaller
' IswiAuto15.ISWiProject is for InstallShield 2009; use IswiAuto17.ISWiProject for InstallShield 2011!
Set pInstaller = CreateObject("IswiAuto17.ISWiProject")
Dim pDatabase
pInstaller.OpenProject Step.ExpProperty(Builder, "Filename")
pInstaller.ProductVersion = Application.ExpandMacrosAndScript("%IS_MY_PRODUCT_VERSION%")
'Change the GUID for the package code
guidString = pInstaller.GenerateGUID()
pInstaller.PackageCode = guidString
pInstaller.SaveProject
pInstaller.CloseProject
End Sub
‎Nov 16, 2010
09:17 PM
Shuttledude wrote:
This code works for me in Visual Build Pro 7.7 (using it in the Script Editor associated with building an InstallShield 2011 project; works with msi projects and installscript msi projects). It should work with any other build tool or automated script as well.
Yeah, I have no problem updating the GUID and Properties using the 2011 Automation Interface, but like Mary, the Build method fails for me. I also have multiple versions of IS installed on my build server.
So, I think the question still remains...
‎Jun 01, 2011
03:42 AM
I got the same problem (ISWiAuto17).
Can open project, set versions and guids, open ProductConfig and Release. BUT the build operation fails with:
1> Unspecified error
1> > ISWiAutomation.ISWiRelease.BuildInternal
1> > ISWiAutomation.ISWiRelease.Build
I'm also using an old build server with several generations of InstallShield.
It's not always a possible solution to uninstall old versions of InstallShield - they are in use.
This looks like a bug, and if so, Flexera should be able to provide a fix or workaround!
Can open project, set versions and guids, open ProductConfig and Release. BUT the build operation fails with:
1> Unspecified error
1> > ISWiAutomation.ISWiRelease.BuildInternal
1> > ISWiAutomation.ISWiRelease.Build
I'm also using an old build server with several generations of InstallShield.
It's not always a possible solution to uninstall old versions of InstallShield - they are in use.
This looks like a bug, and if so, Flexera should be able to provide a fix or workaround!
‎Feb 11, 2020
02:59 AM
IS 2019 R3 - the same problem
Unspecified error
ISWiAutomation.ISWiRelease.BuildInternal
ISWiAutomation.ISWiRelease.Build
Code: 800A4005
Source: ISWiAuto25