Results 1 to 5 of 5

Thread: how to put myfile.exe in windows path

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    149

    how to put myfile.exe in windows path

    I'm using inno setup to deploy my vb program, let's call it "myapp.exe ".

    It works fine.

    [but]

    I want to be able to just type myapp.exe from the command line and have it execute my application.

    The way it works now is you have to enter the entire path to myapp.exe in order for windows to find it.

    Does anyone know how to get the install to put the path to myapp in windows' "Path"?
    (I'm assuming that's what needs to be done)

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    2 ways

    1. Update the system path variable to include the install directory
    2. Install your program (or a batch file that calls your program) in a folder that's known to be in the path (like %SystemRoot%\System32).
    ~seaweed

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    149
    2 ways
    so there's no way to do it AUTOMATICALLY as part of the installation process?

  4. #4
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Oh, yeah. Inno supports setting environment variables

    You can update the path using the registry on NT/2K/XP, and you can edit the Autoexec.bat file to do it on 95/98/ME.

    For XP, just add your install dir to the end of this reg key (DON'T overwrite the data - just append to it!):
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path

    See Innos site for further details:

    http://www.jrsoftware.org/isfaq.php#env
    http://www.jrsoftware.org/ishowto.phtml?a=custom

    Does that help?
    ~seaweed

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    149
    sure does!!!

    Thanks seaweed

    --john

Posting Permissions

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



Click Here to Expand Forum to Full Width