fix extraction of NSudo binary

This commit is contained in:
Homes32
2023-02-11 20:22:02 -06:00
parent edb1a6b088
commit 31afe9d74f

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5
Selected=False
Mandatory=False
Version=1.0.0.2
Date=2021-10-17
Version=1.0.1.0
Date=2022-02-11
[Variables]
%ProgramFolder%="NSudo"
@@ -55,8 +55,8 @@ If,%cb_RunFromRam%,Equal,True,RunFromRam
If,%cb_AlwaysDownload%,Equal,True,DirDeleteEx,"%ProgramsCache%\%ProgramFolder%"
If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",Run,%ScriptFile%,DownloadProgram
If,%SourceArch%,Equal,x64,Set,%ExtractFile%,"#$qNSudo_8.0.1_All_Components\NSudo Launcher\x64\NSudoLG.exe#$q"
Else,Set,%ExtractFile%,"#$qNSudo_8.0.1_All_Components\NSudo Launcher\Win32\NSudoLG.exe#$q"
If,%SourceArch%,Equal,x64,Set,%ExtractFile%,"#$qNSudo Launcher\x64\NSudoLG.exe#$q"
Else,Set,%ExtractFile%,"#$qNSudo Launcher\Win32\NSudoLG.exe#$q"
7z,"e -y #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q %ExtractFile% -o#$q%TargetPrograms%\%ProgramFolder%#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
@@ -131,7 +131,7 @@ DirDeleteEx,"%ProgramsCache%\%ProgramFolder%"
// ===============================================================================================================================
[SetDefaultOptions]
System,Cursor,Wait
WriteInterface,Value,%ScriptFile%,Interface,cb_RunFromRam,False
WriteInterface,Value,%ScriptFile%,Interface,cb_RunFromRam,True
WriteInterface,Value,%ScriptFile%,Interface,cb_AlwaysDownload,False
WriteInterface,Value,%ScriptFile%,Interface,cb_DesktopShc,False
WriteInterface,Value,%ScriptFile%,Interface,cb_StartMenuShc,True
@@ -189,7 +189,7 @@ btn_SetDefaultOptions=,1,8,541,5,25,25,SetDefaultOptions,SetDefaults_16.png,True
btn_AdvancedOptions=,1,8,571,5,25,25,ToggleAdvancedOptions,Advanced_16.png,True,"__Show/Hide Advanced Options"
btn_ScriptInfo=,1,8,601,5,25,25,ShowScriptInfo,Help_16.png,True,"__Script Info"
bvl_RunFromRam=bvl_RunFromRam,1,12,5,50,133,25
cb_RunFromRam="Run From RAM",1,3,12,54,100,18,False,"__When this option is enabled the program files will be stored in Boot.wim and loaded into memory on boot.#$x#$xYou should only select this option if you are booting from Read-Only media and your program requires write-access to the file system."
cb_RunFromRam="Run From RAM",1,3,12,54,100,18,True,"__When this option is enabled the program files will be stored in Boot.wim and loaded into memory on boot.#$x#$xYou should only select this option if you are booting from Read-Only media and your program requires write-access to the file system."
cb_AlwaysDownload="Always download latest version",0,3,155,54,177,18,False,"__Enable this option to ensure you always included the latest version of NSudo in your build."
bvl_Shortcuts=Shortcuts,1,12,5,90,133,184,8,Bold
cb_DesktopShc=Desktop,1,3,12,104,122,18,False