Work around a bug in PCI-Z that causes the eternal ID database not be be used if the shortcut or ShellExecute doesn't specify the working directory.

This commit is contained in:
Homes32
2024-08-11 23:10:50 -05:00
parent d739a17ecc
commit b4d4785a05

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5
Selected=False
Mandatory=False
Version=1.1.1.0
Date=2024-01-13
Version=1.1.2.0
Date=2024-08-11
[Variables]
%ProgramFolder%="PCI-Z"
@@ -71,8 +71,8 @@ Echo,"Configuring %ScriptTitle%..."
///////////////////////////////////////////////////////////////////////////////////
// Shortcuts
If,%cb_DesktopShc%,Equal,True,AddShortcut,Desktop,,%txt_ShortcutName%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
If,%cb_StartMenuShc%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder%,%txt_ShortcutName%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
If,%cb_DesktopShc%,Equal,True,AddShortcut,Desktop,,%txt_ShortcutName%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%",,"%PEPrograms%\%ProgramFolder%"
If,%cb_StartMenuShc%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder%,%txt_ShortcutName%,"%PEPrograms%\%ProgramFolder%\%ProgramExe%",,"%PEPrograms%\%ProgramFolder%"
If,%cb_PinToTaskbar%,Equal,True,PinShortcut,Taskbar,Auto,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
@@ -142,7 +142,7 @@ If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",Run,%ScriptFile%,
Run,%ScriptFile%,ExtractProgram,"%ProjectTemp%\%ProgramFolder%"
If,%cb_DownloadLatestDB%,Equal,True,Run,%ScriptFile%,DownloadDatabase
If,ExistFile,"%ProgramsCache%\%ProgramFolder%\pci.ids",FileCopy,"%ProgramsCache%\%ProgramFolder%\pci.ids","%ProjectTemp%\%ProgramFolder%\pci.ids"
ShellExecuteEx,Open,"%ProjectTemp%\%ProgramFolder%\%ProgramExe%"
ShellExecuteEx,Open,"%ProjectTemp%\%ProgramFolder%\%ProgramExe%",,"%ProjectTemp%\%ProgramFolder%"
[#ClearDownloadCache#]
// ===============================================================================================================================