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

Automation Interface: ImportProject method failed


3 replies to this topic

homer

homer
  • Members
  • 23 posts

Posted 27 September 2004 - 08:29

I want to "convert" from a CVS-controlled isv project to a ism project, to do some string processing and to build the project.

On a standalone buildmachine the call to ImportProject failed.
Here is a code snippet to convert the project (VB-script)
CODE

Dim ISWIProject
Dim ism_file
Dim isv_file
ism_file = "C:\some_ism.ism"
isv_file = "C:\some_isv.isv"

Set ISWIProject = CreateObject("SAAuto8SP1.ISWiProject")
if Not IsObject(ISWIProject) then
  Set ISWIProject = CreateObject("ISWiAutomation.ISWiProject"): CheckError
end if
ISWIProject.ImportProject ism_file, isv_file : CheckError

Sub CheckError()
   Dim message, errRec
   If Err = 0 Then Exit Sub
   message = Err.Source & " " & Hex(Err) & ": " & Err.Description
   Wscript.Echo message
   Wscript.Quit -1
End Sub

It gives an error like: ..\script.vbs(32, 5) SAAuto8SP1: Resource with identifier '103' not found
Where Line 32 is the call to ISWIProject.ImportProject.

If i call the same VB-script on my developer machine (IS-Developer 8 SP1 german) it works fine.

Whate is going wrong here?
Please help me.

Daniel

Original Post on InstallShield community: http://community.ins...ad.php?t=139305

homer

homer
  • Members
  • 23 posts

Posted 27 September 2004 - 12:57

I solved the Problem.
I did a Reboot of the System end it works.

THANK YOU INSTALLSHIELD mad.gif mad.gif mad.gif mad.gif mad.gif

homer

homer
  • Members
  • 23 posts

Posted 28 September 2004 - 09:49

The problem was not the reboot.
The ImportProject method, couldn't handle '/' forward slashes in a path.
After replace all '/' to '\' back slashes, it worked.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 28 September 2004 - 09:50

OK, but never underestimate the power of the magic reboot! That is Windows for you...
Regards
-Stein Åsmul