At one point in the script, I have some decision making going on. Depending on the results of the decision, I may want to launch an application that will be resident on the CD. If the condition is met where I want to launch the application, I call a function which contains the following code:
szCmdLine = "";
szProgram = SRCDIR ^ "\\setup\\Setup.exe";
nResult = LaunchAppAndWait ( szProgram , szCmdLine , WAIT );
I have tried everything I can think of, the program fails to execute every time. I believe I have narrowed down the problem to the fact that the SRCDIR variable is for some reason not getting populated.
If I do:
MessageBox (szProgram,SEVERE);
It displays "\setup1\setup.exe" but does not have the SRCDIR reference. I have also tried using SRCDISK but encountered the same problem.
Does anybody have any ideas on how I can either solve this problem or use another method for what I am trying to do. I am only sometimes launching
this application during the install process. Is there an alternative way to capture the CD-ROM drive?
Thanks for the help!
Sincerely,
Matt Schwartz