Sunday, January 8, 2017

Classic Shell silent install

Download latest Classic Shell installer on http://www.classicshell.net/

This is tested on version
ClassicShellSetup_4_3_0.exe
e10881b65c27c6e09e5a33cd8bcd99c6
a6b06d07fe3b1a7204b1b62c67fbf3c602385364

extract msi file with commands:
ClassicShellSetup_4_3_0.exe extract32
ClassicShellSetup_4_3_0.exe extract64

Now it looks like:

Create
silent-install.cmd
@echo off
set n=Classic Shell
setlocal EnableDelayedExpansion
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s | find "%n%"
if not !errorlevel!==0 (
echo %n%

:x64
if not "%ProgramFiles(x86)%"=="" (
for /f "delims=" %%f in ('dir /b "%~dp0ClassicShellSetup64*.msi"') do (
%systemroot%\system32\msiexec.exe /i "%~dp0%%f" /qn
)
)

:x86
if "%ProgramFiles(x86)%"=="" (
for /f "delims=" %%f in ('dir /b "%~dp0ClassicShellSetup32*.msi"') do (
%systemroot%\system32\msiexec.exe /i "%~dp0%%f" /qn
)
)

) else echo %n% already exists!
endlocal

ClassicShellSetup64_4_3_0.msi
31cddf18dcd2a6b45edd5c663b8aeece
410f868812fd5efb064dfb438d16d229635504af
ClassicShellSetup32_4_3_0.msi
14a51cae935060c62fca8030bc22b308
9fc334aaca66c190b27652964683ee8902d74f51

0 comments:

Post a Comment

Blog Archive