Adding a path to the install folder
Adding a path to the install folder
is there a way to add a path to the install folder or a sub folder during install?
Re: Adding a path to the install folder
Could you please give me more details regarding your question?
Re: Adding a path to the install folder
the system variable %PATH% contains the windows stored search paths... I would like to add the path of my applications system folder so my DLL's and OCX's are in the %PATH%
if %PATH% = C:\Windows\System;C:\Program Files\Internet Explorer;
using something to add <InstallDir>\System; to the end of %PATH%
I want to add some code that will make it...
%PATH% = C:\Windows\System;C:\Program Files\Internet Explorer;C:\Program Files\My Install Folder\System;
if %PATH% = C:\Windows\System;C:\Program Files\Internet Explorer;
using something to add <InstallDir>\System; to the end of %PATH%
I want to add some code that will make it...
%PATH% = C:\Windows\System;C:\Program Files\Internet Explorer;C:\Program Files\My Install Folder\System;
Re: Adding a path to the install folder
To manage environment variables you can use SetEnv, a free tool for setting/updating/deleting System Environment Variables. You can download it from:
http://www.codeproject.com/KB/applications/SetEnv.aspx
or
http://www.codeguru.com/cpp/w-p/win32/t ... riable.htm
After installing SetEnv, you need to add a file "C:\Program Files\Xanya\Bin\SetEnv.exe" to your project into <SetupTempDir> folder (on ‘Additional Files’ page).
Then you can use this program’s features using the ‘System-Commands’ page.
Example (create a new environment variable):
To append a string "<InstallDir>\System" to the end of %PATH% variable use the following settings:
http://www.codeproject.com/KB/applications/SetEnv.aspx
or
http://www.codeguru.com/cpp/w-p/win32/t ... riable.htm
After installing SetEnv, you need to add a file "C:\Program Files\Xanya\Bin\SetEnv.exe" to your project into <SetupTempDir> folder (on ‘Additional Files’ page).
Then you can use this program’s features using the ‘System-Commands’ page.
Example (create a new environment variable):
Code: Select all
Command: <SystemDir>\cmd.exe
Parameters: /C "<SetupTempDir>\SetEnv.exe" -a NAME VALUE
Show: Normal
Timing: After Installation
Code: Select all
Command: <SystemDir>\cmd.exe
Parameters: /C "<SetupTempDir>\SetEnv.exe" -a PATH %"<InstallDir>\System"
Show: Normal
Timing: After Installation