Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
U3Helper/U3H_appStart.ahk
mbirth 7d0cd4700f + added mb_EnvTools.ahk for everything with environment variables
* implemented ProgressBar on appStop
* use appStop routine in appStart-onExit
+ added RunBeforeStop
+ added RunBeforeEject
* handled all EnvVar-replacements through mb_EnvTools.ahk
2007-04-12 18:42:34 +00:00

33 lines
626 B
AutoHotkey

EnvSet USERPROFILE, % EnvValue("U3_APP_DATA_PATH")
EnvSet HOMEPATH, % EnvValue("U3_APP_DATA_PATH")
EnvSet APPDATA, % EnvValue("U3_APP_DATA_PATH") . "\Application Data"
; add custom PATH directories
EnvGet ePATH, PATH
IniGetKeys("envdir", INIFile, "EnvPath")
Loop %envdir0%
{
CurPath := envdir%A_Index%
CurPath := EnvParseStr(CurPath)
ePATH := CurPath . ";" . ePATH
}
EnvSet PATH, %ePATH%
EnvGet APPDATA, APPDATA
IfNotExist %APPDATA%
{
FileCreateDir %APPDATA%
}
cmdl := AppExe
Loop %0%
{
If (A_Index > 1)
{
cmdl := cmdl . " " . %A_Index%
}
}
OnExit ASOnExit
RunWait %cmdl%