acebook

Pages

mardi 16 septembre 2014

[Batch] Installation Silencieuse

Commentaires → 0

Installation silencieuse d'un logiciel

Pour installer sans avoir a cliquer sur suivant etc... on va faire un fichier BAT qui installera automatiquement nos logiciels.

Cela dépend des logiciels,en règle général il faut ajouter :
/q 
/qb! 
(Vous pouvez utiliser /qb au lieu de /qn pour afficher la barre de progression)
/VERYSILENT 
/SUPPRESSMSGBOXES
 /NORESTART

Exemple d'un fichier .bat
@echo off

echo Installation de Nod32
msiexec.exe /i C:\Windows\Setup\Scripts\eav_nt64_fra.msi /qb! REBOOT="ReallySuppress" ADMINCFG="cfg.xml"
Xcopy /q "TNod-1.4.2.3-Final-Portable" "C:\TNod\"

echo Installation de 7zip 
start /wait C:\Windows\Setup\Scripts\7z920-x64.msi /q

echo Installation de Mbam 
start /wait C:\Windows\Setup\Scripts\mbam-setup-2.0.2.1012.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART

echo Installation de Firefox
start /wait C:\Windows\Setup\Scripts\Firefox.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART

echo Installation de .NET Framework 4.6.1 
start /wait C:\Windows\Setup\Scripts\dotNetFx4.6.1.exe /ai /q

echo Installation de Mise a jour pour Windows 7 
start /wait wusa.exe C:\Windows\Setup\Scripts\Windows6.1-KB2533552-x64.msu /quiet /norestart

echo Désactiver UAC
call W8F_Disable_UAC.reg

echo Afficher fichiers cachés et les extensions
regedit.exe /S Afficher-fichiers-cachés-et-les-extensions.reg

echo Exclure type de fichiers
regedit.exe /S Exclurer_type_fichiers.reg

echo Installation Flash Player
install_flash_player_15_plugin.exe -install

echo RemoveWAT-2.2.6.exe
RemoveWAT-2.2.6.exe /s

--------------------------

Exclurer_type_fichiers.reg
(clic-droit:enregistrer-sous)

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"DefaultFileTypeRisk"=dword:00001807
"LowRiskFileTypes"=".zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.wav"

Afficher-fichiers-cachés-et-les-extensions.reg
(clic-droit:enregistrer-sous)

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"HideFileExt"=dword:00000000

W8F_Disable_UAC.reg
(clic-droit:enregistrer-sous)
 Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000000

Tnod.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"Tnod"="C:\\TNod\\TNODUP-Portable.exe"

Il faut mettre les double \\ pour définir un chemin.

Enjoy !

Aucun commentaire: