JustPaste.it

Extract and run windows program from installer

Extract and run windows program from installer

 

 

Windows batch file file download from a URL - Stack Overflow

 

7 zip - 7-Zip and unzipping from command line - Super User

 

batch file - In Windows cmd, how do I prompt for user input and use the result in another command? - Stack Overflow

 

 

 

noninstall.cmd or .bat

 


cd %USERPROFILE%\Downloads

 

 

bitsadmin.exe /transfer "Downloading 7zip" https://www.7-zip.org/a/7z2408-x64.msi %USERPROFILE%\Downloads\7zip_installer.msi

msiexec /a "%USERPROFILE%\Downloads\7zip_installer.msi" /qb TARGETDIR=%USERPROFILE%\Downloads\7zip

 

 

bitsadmin.exe /transfer "Downloading inno unp" "https://downloads.sourceforge.net/project/innounp/innounp/innounp%200.50/innounp050.rar?ts=gAAAAABmyisfkjD-4XRvcqtLFUIdY5n0Nq7u3x0SBxcpGMX-zKrBizy4_Me5X1EMSXTj-QE6gu7454rEFCD3zjbFbgdDz3pEMw%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Finnounp%2Ffiles%2Flatest%2Fdownload" %USERPROFILE%\Downloads\innounp.rar

 

 

%USERPROFILE%\Downloads\7zip\Files\7-Zip\7z.exe x %USERPROFILE%\Downloads\innounp.rar -oinnounp

 

 

@echo off
set /p "installer=Enter Path to installer exe"



%USERPROFILE%\Downloads\innounp\innounp.exe -x -dNonInstall %installer%

 

explorer %USERPROFILE%\Downloads\NonInstall

 

exit