FanIT Цитата: Всем привет! У меня еще один вопрос. В левом нижнем углу инсталятора есть надпись "Nullsoft install system". Как эту надпись можно заменить на свою?
BrandingText "ваш_текст" в заголовке вашего скрипта. [more=К примеру так]
!define PRODUCT_NAME "dirhtml"
!define PRODUCT_VERSION "4.77"
!define PRODUCT_PUBLISHER "Copyright © 2000-2006 Eric Nitzsche"
!define PRODUCT_WEB_SITE "http://home.pacbell.net/nitzsche/dirhtml/dirhtml.html"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\dirhtml.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
SetCompressor /solid lzma
!include "MUI.nsh"
!define MUI_ABORTWARNING
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\InnoSetupWiz.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\InnoSetupWiz.bmp"
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-blue-full.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-blue-full.ico"
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "dirhtml"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_RUN "$INSTDIR\dirhtml.exe"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Russian"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
!packhdr "setup.exe" '"upx.exe -9 --compress-icons=0 setup.exe"'
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "setup.exe"
InstallDir "$PROGRAMFILES\dirhtml"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "Path"
AllowRootDirInstall true
XPStyle on
BrandingText "dirhtml 4.77"
ShowInstDetails hide
VIProductVersion "4.7.7.0"
VIAddVersionKey /LANG=${LANG_ENGLISH} ProductName "dirhtml 4.77"
VIAddVersionKey /LANG=${LANG_ENGLISH} Comments "Generates html files from folder branches."
VIAddVersionKey /LANG=${LANG_ENGLISH} CompanyName "Eric Nitzsche"
VIAddVersionKey /LANG=${LANG_ENGLISH} LegalCopyright "© Eric Nitzsche, 2000 - 2006, VictorVG @ VikSoft.Ru, 1996 - 2006. All Right Reserved."
VIAddVersionKey /LANG=${LANG_ENGLISH} FileDescription "Install dirhtml 4.77"
VIAddVersionKey /LANG=${LANG_ENGLISH} FileVersion "1.0.0.1"
VIAddVersionKey /LANG=${LANG_ENGLISH} ProductVersion "4.7.7"
VIAddVersionKey /LANG=${LANG_ENGLISH} InternalName "dirhtml"
VIAddVersionKey /LANG=${LANG_ENGLISH} LegalTrademarks "Eric Nitzsche, VikSoft.Ru"
VIAddVersionKey /LANG=${LANG_ENGLISH} OriginalFilename "dirhtml"
VIAddVersionKey /LANG=${LANG_RUSSIAN} ProductName "dirhtml 4.77"
VIAddVersionKey /LANG=${LANG_RUSSIAN} Comments "Dirhtml - утилита для составления HTML листингов структуры папок."
VIAddVersionKey /LANG=${LANG_RUSSIAN} CompanyName "Eric Nitzsche"
VIAddVersionKey /LANG=${LANG_RUSSIAN} LegalCopyright "© Eric Nitzsche 2000 - 2006, VictorVG @ VikSoft.Ru, 1996 - 2006. Все права защищены."
VIAddVersionKey /LANG=${LANG_RUSSIAN} FileDescription "Установка dirhtml 4.77"
VIAddVersionKey /LANG=${LANG_RUSSIAN} FileVersion "1.0.0.1"
VIAddVersionKey /LANG=${LANG_RUSSIAN} ProductVersion "4.7.7"
VIAddVersionKey /LANG=${LANG_RUSSIAN} InternalName "dirhtml"
VIAddVersionKey /LANG=${LANG_RUSSIAN} LegalTrademarks "Eric Nitzsche, VikSoft.Ru"
VIAddVersionKey /LANG=${LANG_RUSSIAN} OriginalFilename "dirhtml"
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
Section "main" SEC01
SetOutPath "$INSTDIR"
SetOverwrite try
File "dirhtml\blue.txt"
File "dirhtml\blue2.txt"
File "dirhtml\blue3.txt"
File "dirhtml\brown.txt"
File "dirhtml\dirhtml.exe"
File "dirhtml\dirhtml_help.html"
File "dirhtml\fancy_dark.txt"
File "dirhtml\fancy_green.txt"
File "dirhtml\framed recursive file.ini"
File "dirhtml\frameset.txt"
File "dirhtml\frameset_xhtml.txt"
File "dirhtml\gray.txt"
File "dirhtml\green.txt"
File "dirhtml\javascript.txt"
File "dirhtml\left_frame.txt"
File "dirhtml\light_blue.txt"
File "dirhtml\Random recursive.ini"
File "dirhtml\readme.txt"
File "dirhtml\right_frame.txt"
File "dirhtml\single recursive file.ini"
File "dirhtml\valid_xhtml.txt"
SetOverwrite on
File "dirhtml\dirhtml.ico"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\dirhtml.lnk" "$INSTDIR\dirhtml.exe"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Read Me.lnk" "$INSTDIR\readme.txt"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -AdditionalIcons
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
SetShellVarContext all
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\dirhtml.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "Path" "$INSTDIR"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\dirhtml.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "Удаление программы $(^Name) было успешно завершено."
FunctionEnd
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Вы уверены в том, что желаете удалить $(^Name) и все компоненты программы?" IDYES +2
Abort
FunctionEnd
Section Uninstall
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\dirhtml.ico"
Delete "$INSTDIR\valid_xhtml.txt"
Delete "$INSTDIR\single recursive file.ini"
Delete "$INSTDIR\right_frame.txt"
Delete "$INSTDIR\readme.txt"
Delete "$INSTDIR\Random recursive.ini"
Delete "$INSTDIR\light_blue.txt"
Delete "$INSTDIR\left_frame.txt"
Delete "$INSTDIR\javascript.txt"
Delete "$INSTDIR\green.txt"
Delete "$INSTDIR\gray.txt"
Delete "$INSTDIR\frameset_xhtml.txt"
Delete "$INSTDIR\frameset.txt"
Delete "$INSTDIR\framed recursive file.ini"
Delete "$INSTDIR\fancy_green.txt"
Delete "$INSTDIR\fancy_dark.txt"
Delete "$INSTDIR\dirhtml_help.html"
Delete "$INSTDIR\dirhtml.exe"
Delete "$INSTDIR\brown.txt"
Delete "$INSTDIR\blue3.txt"
Delete "$INSTDIR\blue2.txt"
Delete "$INSTDIR\blue.txt"
Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
Delete "$SMPROGRAMS\$ICONS_GROUP\Read Me.lnk"
Delete "$SMPROGRAMS\$ICONS_GROUP\dirhtml.lnk"
RMDir "$SMPROGRAMS\$ICONS_GROUP"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SetAutoClose true
SectionEnd[/more]. Этому коду сто лет в обед, но он полностью рабочий.