9/4/2023 0 Comments 7zip install windows>&2 echo Path new_data to write to registry is undefined. :: Set new_data to a value to suit data type. >&2 echo Path data for write to registry is undefined. :: Query the HKLM Path and get the key name, data type and data.įor /f "tokens=1,2,*" %%A in ('reg query "%main_key%" /v Path') do ( Set "main_key=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" 圆4 path = %圆4SetupFilePath%, x86 path offįor %%F in ("%SevenZipName%") do set "File=%%~F"Ĭall :add_path "%SevenZipPath%" "%%ProgramFiles%%\7-Zip" :: the 7zip installer silent based on the architecture of the OSĮcho Error installing 7zip for %OS% OS. :: Description: This procedure will install the correct version of :: Check arguments 1 = Installation Directory Path :: Check arguments 1 = Installation Directory Path. Reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL & set OS=32BIT || set OS=64BIT ![]() SET x867ZipPath=C:\Program Files (x86)\7-Zip\ SET x86SetupFilePath=C:\PSDARS-Setup\x86\ I've tried pauses, echos, other subroutine that just echos (which works and executes commands after returning).īut for whatever reason, after I execute 7zip.exe /S it just quits executing commands even after returning from the subroutine I made to install it. exes silently and for whatever reason, when I finish executing the installation of 7zip silently in my batch file, no other commands execute after it. ![]() I'm trying to create a script that runs multiple setup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |