WinZIP 16 (64 Bit) on Windows 7
Answers (3)
My Install.cmd that worked for me: My soultion has the 32bit and 64 bit Version integrated. So it doesnt matter if it is a 64bit client or a 32bit.
@echo off
set AppName=WinZip 16.0 64bit (EN) - 001
:: Path for logfiles.
set Logs=%SystemDrive%\Logs
if exist %SystemDrive%\Wininst set Inst=%SystemDrive%\Wininst
if exist %SystemDrive%\Vistainst set Inst=%SystemDrive%\Vistainst
if exist %SystemDrive%\Srv08inst set Inst=%SystemDrive%\Srv08inst
set Logs=%Inst%\Logs
if not exist %Logs% MD %Logs%
set LogFile=%Logs%\%AppName%.log
:: Installation
if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto AMD64
if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto AMD64
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86
echo %date% %time% ERROR: Processor Architecture "%PROCESSOR_ARCHITECTURE%" unknown >>"%LogFile%"
goto Error
:x86
echo %date% %time% Installation (32 bit) of %AppName% >>"%LogFile%"
cd /D %~dp0
rem installation 32bit
msiexec /i winzip16-32.msi /qn ADDDESKTOPICON=0 INSTALLCMD="/noqp /noc4u /notip /nojobrunprompt /autoinstall" /L* "%Logs%\%AppName%.msi.log"
rem Path for the licensefile
if not exist "%PROGRAMDATA%\WinZip" md "%PROGRAMDATA%\WinZip"
rem copy job for the licensefile
copy /y "%~dp0WinZip.wzmul" "%PROGRAMDATA%\WinZip\WinZip.wzmul\" >>"%LogFile%"
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error
rem regedit /s "%~dp0AddRemoveEintrag.reg"
goto cleanup
:AMD64
echo %date% %time% Installation (64 bit) of %AppName% >>"%LogFile%"
cd /D %~dp0
rem installation 64bit
msiexec /i winzip16-64.msi /qn ADDDESKTOPICON=0 INSTALLCMD="/noqp /noc4u /notip /nojobrunprompt /autoinstall" /L* "%Logs%\%AppName%.msi.log"
rem Path for the licensefile
if not exist "%PROGRAMDATA%\WinZip" md "%PROGRAMDATA%\WinZip"
rem copy job for the licensefile
copy /y "%~dp0WinZip.wzmul" "%PROGRAMDATA%\WinZip\WinZip.wzmul\" >>"%LogFile%"
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error
rem regedit /s "%~dp0AddRemoveEintrag.reg"
goto cleanup
:: Cleanup
:Cleanup
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\WinZip\WinZip 16.0.lnk" copy /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\WinZip\WinZip 16.0.lnk" "%ALLUSERSPROFILE%\Start Menu\Programs\Tools\WinZip 16.0.lnk"
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\WinZip" rmdir /s /q "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\WinZip"
:: Errorhandler
goto End
:Error
echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%"
echo Error: %ERRORLEVEL%
echo.
:: End of Script
:End
echo %date% %time% End installation of %AppName% >>"%LogFile%"
echo End
so that the conversation will remain readable.