Доброго времени суток!
Подскажите, пожалуйста, как правильно получить код возврата беcключевого "тихого" SFX архива?
ListFile
Код:
![Выделить весь код](images/misc/selectcode.png)
SubDirectory:
Packages
x64
x86
Packages\Default
Packages\User
=========================================
Files:
Sublime Text Build 3176 Setup.exe
Sublime Text Build 3176 x64 Setup.exe
Packages\Default\Context.sublime-menu
Packages\Default\Encoding.sublime-menu
Packages\Default\Find in Files.sublime-menu
Packages\Default\Indentation.sublime-menu
Packages\Default\Line Endings.sublime-menu
Packages\Default\Main.sublime-menu
Packages\Default\Side Bar Mount Point.sublime-menu
Packages\Default\Side Bar.sublime-menu
Packages\Default\Syntax.sublime-menu
Packages\Default\Tab Context.sublime-menu
Packages\Default\Widget Context.sublime-menu
Packages\User\Preferences.sublime-settings
x64\sublime_text.exe
x86\sublime_text.exe
config.txt
Код:
![Выделить весь код](images/misc/selectcode.png)
;!@Install@!UTF-8!
SetEnvironment="PFx86=%ProgramFiles%\\Sublime Text 3"
SetEnvironment="PFx64=%ProgramW6432%\\Sublime Text 3"
RunProgram="x86:\"Sublime Text Build 3176 Setup.exe\" /VERYSILENT"
RunProgram="x64:\"Sublime Text Build 3176 x64 Setup.exe\" /VERYSILENT"
RunProgram="x86:hidcon:xCopy x86\\* \"%PFx86%\\\" /s /e /i /y"
RunProgram="x64:hidcon:xCopy x64\\* \"%PFx64%\\\" /s /e /i /y"
RunProgram="hidcon:xCopy Packages\\* \"%AppData%\\Sublime Text 3\\Packages\\\" /s /e /i /y"
RunProgram="hidcon:Reg Add \"HKCR\\*\\shell\\Open with Sublime Text\" /v \"Icon\" /t REG_SZ /d \"C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0\" /f"
RunProgram="hidcon:Reg Add \"HKCR\\*\\shell\\Open with Sublime Text\\command\" /ve /t REG_SZ /d \"C:\\Program Files\\Sublime Text 3\\sublime_text.exe \\\"\"%\"1\\\"\" /f"
InstallPath="%WINDIR%\\Temp\\Sublime"
GUIMode="1"
Delete="%%T"
;!@InstallEnd@!
Install.cmd
Код:
![Выделить весь код](images/misc/selectcode.png)
@Echo Off
Setlocal EnableDelayedExpansion
"%~dp0Sublime_Text_Build_3176.exe" && (
Echo Sublime Text Build 3176 has been installed on your computer.
) || (
Echo ERRORLEVEL=%errorlevel%
)
Pause
Exit