Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2002
    Location
    Hodgen, OK, USA
    Posts
    15

    Grin How do I change directories to %AppDir%

    In the Actions on the After Install tab page I am running a executable to update some data base files.

    Execute(%Appdir%\ins44d63.exe)

    I would like it to run from the same directory were it was copied to. But for some reason it think it is running from C:\Windows.

    How do I change directories to %AppDir% before I ins44d63.exe is ran?

  2. #2
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834

    Re: How do I change directories to %AppDir%

    What makes you think that it is running the wrong copy?

    The path will be expanded to include the contents of %AppDir% at that moment, therefore I don't really see how the other copy would be executed instead.


    ------------------
    Sincerely,

    Darryl Hnatiuk
    Indigo Rose Corporation
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  3. #3
    Join Date
    Jan 2002
    Location
    Hodgen, OK, USA
    Posts
    15

    Re: How do I change directories to %AppDir%


    When ins44d63.exe runs it gets the drive and directory and stores them in local variables. Then it checks to see if a data base file is in the current directory. If it is not then it displays a message with the Drive and directory that it found and stops.

    The message that is displayed indicates the directory is the C:\Windows directory and not the %AppDir% that was selected.


  4. #4
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: How do I change directories to %AppDir%

    That sounds a bit odd. Does ins44d63.exe work properly if you double-click on it in explorer?

    You could try running the program from a batch file, so you could CD to the desired directory first. (Use text file actions to edit the paths in the .bat file if you need to.)

    Tip: to make the batch file window disappear after it's done, end it with

    @cls
    @exit
    --[[ Indigo Rose Software Developer ]]

  5. #5
    Join Date
    Jan 2002
    Location
    Hodgen, OK, USA
    Posts
    15

    Re: How do I change directories to %AppDir%

    Yes it works if I double click it from explore.

    So there is know way to change directories?

    I realy did not want to use a batch file (dos prompt).

  6. #6
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943

    Re: How do I change directories to %AppDir%

    Hi,

    Try setting the Working Directory to %AppDir%.

    mark.

    [This message has been edited by Mark (edited 02-19-2002).]
    MSI Factory The Next Generation Intelligent Setup Builder

  7. #7
    Join Date
    Jan 2002
    Location
    Hodgen, OK, USA
    Posts
    15

    Grin Re: How do I change directories to %AppDir%

    Ok thank you a lot. I missed that totaly.

    [This message has been edited by Jean (edited 02-19-2002).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts