Creates registry entries for a program under "App Paths".
RegApp(program-name, path)
(s) program-name the name of an executable program (EXE), optionally containing a path.
(s) path optional desired "PATH" setting for the specified program.
(i) @TRUE Entry was created, @FALSE Operation failed.
This function creates (or updates) a sub-key in the registration database for the specified program, of the form PROGNAME.EXE, under the key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
If "program-name" does not contain a path, the function will search for it on the path.
The function creates a "(Default)" value for the key, containing the full path to the specified program.
If the "path" parameter is not a blank string (""), the function also creates a "Path" value for the key. This should contain one or more directories (separated by semi-colons) which you want to be prepended to the existing "PATH" environment variable when the program is run.
Windows Vista/2008 and newer: This function may require an Administrator level account, because it attempts to write to the HKEY_LOCAL_MACHINE registry key.
residence="c:\msoffice\excel.exe" path="c:\msoffice\excel;c:\msoffice\winword" RegApp(residence, path) Message("Excel.EXE","Registered at %residence% and use path %path%")
InstallFile, RegCreateKey, RegOpenKey, RegCloseKey, RegDeleteKey, RegSetValue, RegQueryValue, RegQueryKey, and the section on Registration Database Operations