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

DoInstall() fails to launch the child setup.


4 replies to this topic

Rohit

Rohit
  • Members
  • 2 posts

Posted 28 June 2004 - 10:43

I am trying to use DoInstall() to call a child setup.
DoInstall() fails to launch the child setup.
The following code is called in the OnBegin() event handler.

szInsFile = SUPPORTDIR ^ "setup.exe";
nResult = DoInstall ( szInsFile , "" , WAIT );

The setup.exe is not launched and the DoInstall function returns -1.
The same child setup is launched when LaunchAppAndWait() is used.

Both the setup have been created using the same version of InstallShield (DevStudio 9 SP1) and are of the type InstallScriptMSI.

Any help would be appreciated.

Thanks in Advance.

Regards,
Rohit

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 28 June 2004 - 12:52

I have never used child setups, but I believe they can only be run using a "run child setup custom action" if the child setup is a windows installer setup.
Regards
-Stein Åsmul

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 June 2004 - 13:39

DoInstall wants the path to the compiled script file (.inx) not to the setup.exe.

Rohit

Rohit
  • Members
  • 2 posts

Posted 29 June 2004 - 07:27

Thanks for your reply.
Currently I have access to only the setup.exe
So the only way out would be to use LaunchAppAndWait()
Is there any other solution ?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 29 June 2004 - 14:45

Extract the setup.exe to get access to the .inx file.