|
-
Jan 6th, 2003, 02:16 PM
#1
Thread Starter
Addicted Member
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
-
Jan 6th, 2003, 02:26 PM
#2
Frenzied Member
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).
-
Jan 6th, 2003, 03:13 PM
#3
Thread Starter
Addicted Member
so there's no way to do it AUTOMATICALLY as part of the installation process?
-
Jan 6th, 2003, 03:55 PM
#4
Frenzied Member
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?
-
Jan 6th, 2003, 04:00 PM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|