Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

SaveProject fails


3 replies to this topic

JeffPClark

JeffPClark
  • Members
  • 9 posts

Posted 08 February 2002 - 21:46

The following script fails on the SaveProject statement.
Anyone else run into this?

Dim oIPWI, arrayVersionFields, UpperBound
Set oIPWI = CreateObject("ISWiAutomation.ISWiProject")

oIPWI.OpenProject "contactmanager.ism"

' write it to the project
oIPWI.ProductVersion = "3.2.4.66"

oIPWI.SaveProject                               'Fails
oIPWI.CloseProject


Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 10 February 2002 - 23:43

I had a similar error when using VBScript with IPWI 2.03.  When I changed my code to pure VB, declaring my variables with Dim blah as iPWIProject, it all worked fine.

JeffPClark

JeffPClark
  • Members
  • 9 posts

Posted 11 February 2002 - 16:17

Thanks Leigh, But that didn't work either.

I had this working in VB with ISWI 2.03, when I moved to IS Developer 7.02, it broke.
The good thing is that I can build from the automation interface, but can't save my changes in the ISM file.


chrisp

chrisp
  • Members
  • 8 posts

Posted 21 May 2002 - 11:55

Have you tried use the full path to the ism file when opening it? I dont know if it will help but I basically do a similar thing and the only difference I can see is that I use a full path and it is working so far!