Хоть бы раз "Полезное сообщение" ткнул...ммм.. ну да ладно.
Вот такой вот скрипт ставит оперу 10 альфа на русском тихо с ключом /S
Код:
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Opera"
!define PRODUCT_VERSION "10 alpha"
!define MSI_NAME "opera installer.msi"
!include "MUI.nsh"
SetCompressor /SOLID lzma
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "Russian"
Name "${PRODUCT_NAME}"
Caption "Установка ${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "${PRODUCT_NAME}-${PRODUCT_VERSION}.exe"
;InstallDir "$TEMP"
ShowInstDetails show
Section "Core" SEC01
SetOutPath "$TEMP"
File "d:\opera\${MSI_NAME}"
ExecWait "msiexec.exe /i $\"$TEMP\${MSI_NAME}$\" /qb ALLUSERS=1 CREATE_DESKTOP_ICON=1 CREATE_QUICKLAUNCH_ICON=1 CREATE_STARTMENU_ICONS=1 MULTI_USER_SETTING=1$\""
Delete "$TEMP\${MSI_NAME}"
File "d:\opera\install_flash_player.exe"
ExecWait "$TEMP\install_flash_player.exe /S"
Delete "$TEMP\install_flash_player.exe"
SetOverwrite on
SetOutPath "$PROGRAMFILES\Opera 10 preview"
Rename "$PROGRAMFILES\Opera 10 preview\english.lng" "$PROGRAMFILES\Opera 10 preview\english_enUS.lng"
File /oname=english.lng "d:\opera\ru.lng"
CreateDirectory "$PROGRAMFILES\Opera 10 preview\locale\ru"
SetOutPath "$PROGRAMFILES\Opera 10 preview\locale\ru"
File "d:\opera\ru.lng"
SetAutoClose false
SectionEnd
Function .onInit
;SetSilent silent
FunctionEnd