fix variables used in RunProgram

This commit is contained in:
Homes32
2025-02-23 16:07:19 -06:00
parent 08236da73f
commit d3187a886e

View File

@@ -113,8 +113,9 @@ If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
// Related........: btn_LaunchProgram // Related........: btn_LaunchProgram
// =============================================================================================================================== // ===============================================================================================================================
[LaunchProgram] [LaunchProgram]
If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%",Run,%ScriptFile%,DownloadProgram If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",Run,%ScriptFile%,DownloadProgram
ShellExecuteEx,Open,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%" Run,%ScriptFile%,ExtractProgram,"%ProjectTemp%\%ProgramFolder%\%ProgramExe%"
ShellExecuteEx,Open,"%ProjectTemp%\%ProgramFolder%\%ProgramExe%"
[#ClearDownloadCache#] [#ClearDownloadCache#]
// =============================================================================================================================== // ===============================================================================================================================