add working dir to shortcuts. This prevents an issue where some programs write config files to the shortcut dir instead of the .exe dir.

This commit is contained in:
Homes32
2025-03-08 22:45:07 -06:00
parent 05107326b4
commit ddb778a1af
180 changed files with 439 additions and 436 deletions

View File

@@ -81,13 +81,13 @@ TxtAddLine,"%TargetPrograms%\%ProgramFolder%\GlobalOptions.xml","<GlobalOptions>
///////////////////////////////////////////////////////////////////////////////////
// Shortcuts
If,%cb_DesktopShc_HeavyLoad%,Equal,True,AddShortcut,Desktop,,%txt_ShortcutName_HeavyLoad%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
If,%cb_StartMenuShc_HeavyLoad%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder_HeavyLoad%,%txt_ShortcutName_HeavyLoad%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
If,%cb_DesktopShc_HeavyLoad%,Equal,True,AddShortcut,Desktop,"",%txt_ShortcutName_HeavyLoad%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%","","%PEPrograms%\%ProgramFolder%"
If,%cb_StartMenuShc_HeavyLoad%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder_HeavyLoad%,%txt_ShortcutName_HeavyLoad%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%","","%PEPrograms%\%ProgramFolder%"
If,%cb_PinToTaskbar_HeavyLoad%,Equal,True,PinShortcut,Taskbar,Auto,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
If,%cb_PinToStartMenu_HeavyLoad%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
If,%cb_DesktopShc_TreeSizeFree%,Equal,True,AddShortcut,Desktop,,%txt_ShortcutName_TreeSizeFree%,"%PEPrograms%\%ProgramFolder%\TreeSizeFree.exe"
If,%cb_StartMenuShc_TreeSizeFree%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder_TreeSizeFree%,%txt_ShortcutName_TreeSizeFree%,"%PEPrograms%\%ProgramFolder%\TreeSizeFree.exe"
If,%cb_DesktopShc_TreeSizeFree%,Equal,True,AddShortcut,Desktop,"",%txt_ShortcutName_TreeSizeFree%,"%PEPrograms%\%ProgramFolder%\TreeSizeFree.exe","","%PEPrograms%\%ProgramFolder%"
If,%cb_StartMenuShc_TreeSizeFree%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder_TreeSizeFree%,%txt_ShortcutName_TreeSizeFree%,"%PEPrograms%\%ProgramFolder%\TreeSizeFree.exe","","%PEPrograms%\%ProgramFolder%"
If,%cb_PinToTaskbar_TreeSizeFree%,Equal,True,PinShortcut,Taskbar,Auto,"%PEPrograms%\%ProgramFolder%\TreeSizeFree.exe"
If,%cb_PinToStartMenu_TreeSizeFree%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%ProgramFolder%\TreeSizeFree.exe"