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

Changing directory and running app


1 reply to this topic

wom

wom
  • Members
  • 2 posts

Posted 30 May 2003 - 01:41

Using Developer 7.0 with SP4

During the install I need to run an application that will be distributed on the CD. It must 1) have a .dll that is stored in the directory with it and 2) must get a command line argument that I pass to it.

So far I think the best option is to in script call ChangeDirectory (so the .dll will be found in the current directory) and LaunchAppAndWait.

Like this example (InstallModeStr will be set to a single character such as 'A', 'B', etc.):

if (ChangeDirectory (SRCDISK + ":\\PrePost") = 0) then
if (LaunchAppAndWait ("PREINSTALL.exe", InstallModeStr, WAIT) < 0) then


However the ChangeDirectory fails every time. I KNOW the directory exists on the CD and I've popped up a message that shows that SRCDISK is set to the CD drive.

Any hints on why the call fails or other ideas (keep in mind the .dll and the command line requirements)?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 May 2003 - 16:43

I believe that SRCDISK includes the colon