simple script
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2628 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0b0e54af96
commit
d6fe533978
1 changed files with 15 additions and 47 deletions
|
@ -1,62 +1,30 @@
|
||||||
;NSIS Modern User Interface version 1.65
|
; VersionInfo.nsi
|
||||||
;User variables Example Script
|
;
|
||||||
;Written by Ramon
|
; This script shows you how to add version information to an installer.
|
||||||
|
; Windows shows this information on the Version tab of the File properties.
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Include Modern UI
|
|
||||||
|
|
||||||
!include "MUI.nsh"
|
Name "Version Info"
|
||||||
|
|
||||||
;--------------------------------
|
OutFile "VersionInfo.exe"
|
||||||
;Product Info
|
|
||||||
|
|
||||||
!define MUI_PRODUCT "User Variables"
|
|
||||||
!define MUI_VERSION "1.65"
|
|
||||||
|
|
||||||
;--------------------------------
|
|
||||||
;Configuration
|
|
||||||
|
|
||||||
;General
|
|
||||||
OutFile "VersionInfo.exe"
|
|
||||||
|
|
||||||
;Folder selection page
|
|
||||||
InstallDir "$PROGRAMFILES\${MUI_PRODUCT}"
|
|
||||||
|
|
||||||
;Get install folder from registry if available
|
|
||||||
InstallDirRegKey HKCU "Software\${MUI_PRODUCT}" ""
|
|
||||||
|
|
||||||
ShowInstDetails nevershow
|
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Version Information
|
;Version Information
|
||||||
|
|
||||||
VISetVersionLanguage 2057 1200 ; English UK
|
VISetVersionLanguage 2057 1200 ; English UK
|
||||||
VIAddTranslation 2057 1200 ; English UK
|
VIAddTranslation 2057 1200 ; English UK
|
||||||
VIProductVersion "1.2.3.4"
|
VIProductVersion "1.2.3.4"
|
||||||
VIAddVersionKey "ProductName" "NSIS"
|
VIAddVersionKey "ProductName" "Test Application"
|
||||||
VIAddVersionKey "Comments" "visit us at nsis.sourceforge.net"
|
VIAddVersionKey "Comments" "A test comment"
|
||||||
VIAddVersionKey "CompanyName" "NSIS Team"
|
VIAddVersionKey "CompanyName" "Fake company"
|
||||||
VIAddVersionKey "LegalTrademarks" "Nullsoft Installer System"
|
VIAddVersionKey "LegalTrademarks" "Test Application is a trademark of Fake company"
|
||||||
VIAddVersionKey "LegalCopyright" "© Nullsoft Installer System"
|
VIAddVersionKey "LegalCopyright" "© Fake company"
|
||||||
VIAddVersionKey "FileDescription" "NSIS Self-extracting Setup"
|
VIAddVersionKey "FileDescription" "Test Application"
|
||||||
VIAddVersionKey "FileVersion" "1.2.3"
|
VIAddVersionKey "FileVersion" "1.2.3"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Pages
|
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
Section ""
|
||||||
!insertmacro MUI_PAGE_FINISH
|
|
||||||
|
|
||||||
;--------------------------------
|
|
||||||
;Languages
|
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
|
||||||
|
|
||||||
;--------------------------------
|
|
||||||
;Installer Sections
|
|
||||||
|
|
||||||
Section "Dummy Section" SecCopyUI
|
|
||||||
|
|
||||||
/* Copy your files here */
|
|
||||||
|
|
||||||
SectionEnd
|
|
||||||
|
|
||||||
|
SectionEnd
|
Loading…
Add table
Add a link
Reference in a new issue