; settings file for yaP - yet another Portablizer
; http://www.portablefreeware.com/forums/viewtopic.php?f=11&t=5698

; available macros:
; {CURRENTPATH}: launcher's absolute path
; {EXEPATH}: main application's absolute path
; {DRIVE}: current drive letter without trailing backslash, e.g. "D:"
; {CLIPBOARD}: text on clipboard
; {LINEBREAK}: linebreak
; e.g. /icon={FULLPATH}\MyIcon.ico
; environment variables are also supported

[GENERAL]
; general launcher settings

application=
; main application to run (absolute or relative path), e.g.
; examples: "Skype.exe, "App\Skype.exe", "..\Skype.exe", "%PROGRAMFILES%\Skype.exe", "C:\Program Files\Skype\Skype.exe" (without quotes)

commandline=
; specify command line parameters here; e.g. /nosplash
; default: empty

silentbatch=
; show or hide the console window when running .bat files
; 0: show console window (flash)
; 1: do not show console window
; -1: show console window without closing
; default: 1

workdir=
; working directory of main application
; default: empty (workdir = main application's directory)

configdir=
; directory where yaP looks for .bat and .reg files (absolute or relative path)
; default: empty (launcher's directory or "yaP" subdirectory if exists)

requireadminrights=
; use to warn the user if admin rights is required for the main application to run
; 1: show a message if user is not admin (cancellable)
; 2: show a message if user is not admin and quit
; 3: prompt for admin credentials
; -1: quit if user is not admin (no message)
; default: empty (no admin check)

requiredotnetversion=
; specific Microsoft .NET needed to run the main application
; use exclamation mark to exit yaP if unavailable
; example: "4.0" or "4" or "2.1!" or "2!" (without quotes)
; default: empty

requirejavaversion=
; minimum Java version needed to run the main application
; use exclamation mark to exit yaP if unavailable
; example: "1.6" or "1.7!" (without quotes)
; default: empty

multipleinstance=
; allow or disable multiple instances of the main application
; 1: always enable (no prompt)
; 2: run main applicaton only (without BEFORE and AFTER items)
; -1: always disable (no prompt)
; default: empty

[BEFORE]
; these items will be executed before launching the main application

batch=
; batch file in "yaP" subdirectory to be executed BEFORE launching the main application
; yaP adds "/before" commandline parameter which can be used in the batch file (as %1, see example setups)
; example: before.bat
; default: empty

registry=
; registry file in "yaP" subdirectory to be be merged into the registry BEFORE executing the main application
; example: reginfo.reg
; default: empty

deleteregkeyifempty1=
; registry key to be deleted only if it's empty
; to specify more than one, increase the counter by one at a time (e.g. deleteregkeyifempty2, deleteregkeyifempty3)
; example: HKEY_CURRENT_USER\Software\MyApplication
; default: empty

wait=
; wait time BEFORE executing the main application (milliseconds)
; use only if you experience problems or using a slower machine
; default: empty

systemrefresh=
; set to 1 if you need to refresh system BEFORE executing the main application
; default: empty

message=
; 1: show a message to the user before running the main application (with Cancel button)
; [custom string]: you can add your own message, e.g. "Click Yes to run the application"
; default: empty

[AFTER]
; these items will be executed after the main application is closed

batch=
; batch file in "yaP" subdirectory to be executed AFTER the main application has run
; yaP adds "/after" commandline parameter which can be used in the batch file (as %1, see example setups)
; example: after.bat
; default: empty

registry=
; registry file in "yaP" subdirectory to be merged into registry AFTER executing the main application
; example: regclean.reg
; default: empty

deleteregkeyifempty1=
; registry key to be deleted only if it's empty
; to specify more than one, increase the counter by one at a time (e.g. deleteregkeyifempty2, deleteregkeyifempty3)
; example: HKEY_CURRENT_USER\Software\MyApplication
; default: empty

wait=
; wait time AFTER executing the main application (milliseconds)
; use only if you experience problems or using a slower machine
; default: empty

systemrefresh=
; set to 1 if you need to refresh system AFTER executing the main application
; default: empty

message=
; 1: show a message to the user after the main application has run (with Cancel button)
; [custom string]: you can add your own message, e.g. "Click OK to clean up"
; default: empty

[ENVIRONMENT VARIABLES]
; specify custom environment variables here for the main application, e.g.
; MYDATADIR={CURRENTPATH}\Settings
; MYPATH=C:\MYPATH
