Fixed Q-Dir not switching setup file if different source arch is selected. (Issue #144)

This commit is contained in:
Homes32
2025-05-27 20:10:57 -05:00
parent 8766122c2e
commit 387ac788fc

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5
Selected=False
Mandatory=False
Version=1.1.1.0
Date=2023-01-10
Version=1.1.2.0
Date=2025-05-27
[Variables]
%ProgramFolder%="Q-Dir"
@@ -44,7 +44,7 @@ Date=2023-01-10
%ProgramExex64%="Q-Dir_x64.exe"
%DownloadURLx86%=http://www.softwareok.com/Download/Q-Dir_Portable.zip
%DownloadURLx64%=http://www.softwareok.com/Download/Q-Dir_Portable_x64.zip
%SetupFile%="Q-Dir.zip"
%SetupFile%="Q-Dir_%SourceArch%.zip"
%ConfigFile1%="Q-Dir.ini"
%ConfigFile2%="start.qdr"
@@ -73,7 +73,7 @@ RegLoadHives
RegRead,HKLM,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path",%PathVar%
StrFormat,Replace,%PathVar%,"%PEPrograms%\%ProgramFolder%;","",%PathVar%
Set,%PathVar%,"%PEPrograms%\%ProgramFolder%;%PathVar%"
RegWrite,HKLM,0x2,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path",%PathVar%
RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path",%PathVar%
RegUnloadHives
FileCreateBlank,"%TargetPrograms%\%ProgramFolder%\%ConfigFile1%"