Adding a path to the install folder

Common questions about using Actual Installer.
Post Reply
XiMaker
Posts: 7
Joined: Tue May 18, 2010 5:00 pm

Adding a path to the install folder

Post by XiMaker »

is there a way to add a path to the install folder or a sub folder during install?
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Adding a path to the install folder

Post by Leo »

Could you please give me more details regarding your question?
Leo,
Actual Installer Team
https://www.actualinstaller.com
XiMaker
Posts: 7
Joined: Tue May 18, 2010 5:00 pm

Re: Adding a path to the install folder

Post by XiMaker »

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;
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Adding a path to the install folder

Post by Leo »

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):

Code: Select all

Command: <SystemDir>\cmd.exe
Parameters: /C "<SetupTempDir>\SetEnv.exe" -a NAME VALUE
Show: Normal
Timing: After Installation
To append a string "<InstallDir>\System" to the end of %PATH% variable use the following settings:

Code: Select all

Command: <SystemDir>\cmd.exe
Parameters: /C "<SetupTempDir>\SetEnv.exe" -a PATH %"<InstallDir>\System"
Show: Normal
Timing: After Installation
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply