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
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.
DoInstall() fails to launch the child setup.
Started by
Rohit
, Jun 28 2004 10:43
4 replies to this topic
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
-Stein Åsmul
Posted 28 June 2004 - 13:39
DoInstall wants the path to the compiled script file (.inx) not to the setup.exe.
Stefan Krüger
InstallSite.org twitter facebook
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 ?
Currently I have access to only the setup.exe
So the only way out would be to use LaunchAppAndWait()
Is there any other solution ?
Posted 29 June 2004 - 14:45
Extract the setup.exe to get access to the .inx file.
Stefan Krüger
InstallSite.org twitter facebook