Silent installation
Solved
N0V@_B!S
Posted messages
37
Status
Membre
-
XD -
XD -
Hello,
I am currently doing an internship. My "boss" asked me to create a silent installation.
So I created one, but it turns out that it does not work for 5 software programs.
Despite numerous searches on the net, I can’t find any information that can help me solve my installation problem.
The 5 software programs: iTunes (file.msi), Nero (msi), Open Office (msi), Acrobat Reader (file.msi), Power DVD (exe).
Batch code
@echo off
IF EXIST C:\AUTO set CDROM=C:
IF EXIST D:\AUTO set CDROM=D:
IF EXIST E:\AUTO set CDROM=E:
IF EXIST F:\AUTO set CDROM=F:
IF EXIST G:\AUTO set CDROM=G:
IF EXIST H:\AUTO set CDROM=H:
IF EXIST I:\AUTO set CDROM=I:
IF EXIST J:\AUTO set CDROM=J:
IF EXIST K:\AUTO set CDROM=K:
IF EXIST L:\AUTO set CDROM=L:
IF EXIST M:\AUTO set CDROM=M:
IF EXIST N:\AUTO set CDROM=N:
IF EXIST O:\AUTO set CDROM=O:
IF EXIST P:\AUTO set CDROM=P:
IF EXIST Q:\AUTO set CDROM=Q:
IF EXIST R:\AUTO set CDROM=R:
IF EXIST S:\AUTO set CDROM=S:
IF EXIST T:\AUTO set CDROM=T:
IF EXIST U:\AUTO set CDROM=U:
IF EXIST V:\AUTO set CDROM=V:
IF EXIST W:\AUTO set CDROM=W:
IF EXIST X:\AUTO set CDROM=X:
IF EXIST Y:\AUTO set CDROM=Y:
IF EXIST Z:\AUTO set CDROM=Z:
echo Installing Acrobat Reader 9
echo ====================================
start /wait %CDROM%\AUTO\SOFT\Acrobat\acrobat.msi /S /qn /sAll /rs /noreboot
echo Finished
echo ====================================
echo Installing iTunes 8
echo ====================================
start /wait %CDROM%\AUTO\SOFT\iTunes\iTunes.msi /S /qn /s /noreboot
echo Finished
echo ====================================
echo Installing Nero 7
echo ====================================
start /wait %CDROM%\AUTO\SOFT\NERO\Nero.msi /quiet /qn /S /norestart
echo Finished
echo ====================================
echo Installing Open Office
echo ====================================
start /wait %CDROM%\AUTO\SOFT\OPENOFFICE\setup.msi /S /qn /noreboot
echo Finished
echo ====================================
echo Installing Power DVD
echo ====================================
start /wait %CDROM%\AUTO\SOFT\POWERDVD\Setup.exe /S /qn /noreboot
echo Finished
echo ====================================
echo Picasa
echo ====================================
start /wait %CDROM%\AUTO\SOFT\PICASA\picasa.exe /S /qn /noreboot
echo Finished
echo ====================================
echo Installing VLC 9.8
echo ====================================
start /wait %CDROM%\AUTO\SOFT\VLC\setup.exe /S /noreboot
echo Finished
echo ====================================
echo Installing WinRAR 3.8
echo ====================================
start /wait %CDROM%\AUTO\SOFT\Winrar\setup.exe /s /noreboot
echo Finished
echo ====================================
echo Installing Firefox 3.0.6
echo ====================================
start /wait %CDROM%\AUTO\SOFT\Firefox\firefox.exe -ms" /f /noreboot
echo Finished
echo ====================================
I am currently doing an internship. My "boss" asked me to create a silent installation.
So I created one, but it turns out that it does not work for 5 software programs.
Despite numerous searches on the net, I can’t find any information that can help me solve my installation problem.
The 5 software programs: iTunes (file.msi), Nero (msi), Open Office (msi), Acrobat Reader (file.msi), Power DVD (exe).
Batch code
@echo off
IF EXIST C:\AUTO set CDROM=C:
IF EXIST D:\AUTO set CDROM=D:
IF EXIST E:\AUTO set CDROM=E:
IF EXIST F:\AUTO set CDROM=F:
IF EXIST G:\AUTO set CDROM=G:
IF EXIST H:\AUTO set CDROM=H:
IF EXIST I:\AUTO set CDROM=I:
IF EXIST J:\AUTO set CDROM=J:
IF EXIST K:\AUTO set CDROM=K:
IF EXIST L:\AUTO set CDROM=L:
IF EXIST M:\AUTO set CDROM=M:
IF EXIST N:\AUTO set CDROM=N:
IF EXIST O:\AUTO set CDROM=O:
IF EXIST P:\AUTO set CDROM=P:
IF EXIST Q:\AUTO set CDROM=Q:
IF EXIST R:\AUTO set CDROM=R:
IF EXIST S:\AUTO set CDROM=S:
IF EXIST T:\AUTO set CDROM=T:
IF EXIST U:\AUTO set CDROM=U:
IF EXIST V:\AUTO set CDROM=V:
IF EXIST W:\AUTO set CDROM=W:
IF EXIST X:\AUTO set CDROM=X:
IF EXIST Y:\AUTO set CDROM=Y:
IF EXIST Z:\AUTO set CDROM=Z:
echo Installing Acrobat Reader 9
echo ====================================
start /wait %CDROM%\AUTO\SOFT\Acrobat\acrobat.msi /S /qn /sAll /rs /noreboot
echo Finished
echo ====================================
echo Installing iTunes 8
echo ====================================
start /wait %CDROM%\AUTO\SOFT\iTunes\iTunes.msi /S /qn /s /noreboot
echo Finished
echo ====================================
echo Installing Nero 7
echo ====================================
start /wait %CDROM%\AUTO\SOFT\NERO\Nero.msi /quiet /qn /S /norestart
echo Finished
echo ====================================
echo Installing Open Office
echo ====================================
start /wait %CDROM%\AUTO\SOFT\OPENOFFICE\setup.msi /S /qn /noreboot
echo Finished
echo ====================================
echo Installing Power DVD
echo ====================================
start /wait %CDROM%\AUTO\SOFT\POWERDVD\Setup.exe /S /qn /noreboot
echo Finished
echo ====================================
echo Picasa
echo ====================================
start /wait %CDROM%\AUTO\SOFT\PICASA\picasa.exe /S /qn /noreboot
echo Finished
echo ====================================
echo Installing VLC 9.8
echo ====================================
start /wait %CDROM%\AUTO\SOFT\VLC\setup.exe /S /noreboot
echo Finished
echo ====================================
echo Installing WinRAR 3.8
echo ====================================
start /wait %CDROM%\AUTO\SOFT\Winrar\setup.exe /s /noreboot
echo Finished
echo ====================================
echo Installing Firefox 3.0.6
echo ====================================
start /wait %CDROM%\AUTO\SOFT\Firefox\firefox.exe -ms" /f /noreboot
echo Finished
echo ====================================
Configuration: Windows XP Firefox 3.0.6
19 réponses
Hello
In general, all installations in MSI format (Microsoft System Installer)
accept the arguments that "juliano" provided
MSI installations are sometimes hidden in setup.exe or other .exe files
Basically, to install any application with a setup.exe silently
setup.exe /s /noreboot
/s = silent
/qn = no windows during installation
/noreboot = no reboot of the computer at the end of the installation
to get the full list -> 'START -> RUN' then type msiexec and press 'ENTER'
you will get the complete list of MSI parameters
To answer peliphe: how to change the installation directory with this technique
you need to use the "PROPERTY" of the MSI file
to indicate the installation directory, the PROPERTY is "INSTALLDIR"
which gives:
setup.exe /s /noreboot INSTALLDIR=C:\my_directory\my_sub_directory
WARNING: a "PROPERTY" is always written in uppercase, in the example INSTALLDIR is in uppercase
otherwise it will not work
In general, all installations in MSI format (Microsoft System Installer)
accept the arguments that "juliano" provided
MSI installations are sometimes hidden in setup.exe or other .exe files
Basically, to install any application with a setup.exe silently
setup.exe /s /noreboot
/s = silent
/qn = no windows during installation
/noreboot = no reboot of the computer at the end of the installation
to get the full list -> 'START -> RUN' then type msiexec and press 'ENTER'
you will get the complete list of MSI parameters
To answer peliphe: how to change the installation directory with this technique
you need to use the "PROPERTY" of the MSI file
to indicate the installation directory, the PROPERTY is "INSTALLDIR"
which gives:
setup.exe /s /noreboot INSTALLDIR=C:\my_directory\my_sub_directory
WARNING: a "PROPERTY" is always written in uppercase, in the example INSTALLDIR is in uppercase
otherwise it will not work