Version Information now rely on languages, some more updates on named uservars, maybe last one before official release :) (preview UserVars.nsi - doesn't compile yet)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2633 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
ramon18 2003-06-12 00:06:23 +00:00
parent 7adbddc567
commit 1ea2160310
14 changed files with 539 additions and 283 deletions

46
Examples/UserVars.nsi Normal file
View file

@ -0,0 +1,46 @@
; VersionInfo.nsi
;
; This script shows you how to declare and user VARIABLES.
;--------------------------------
!include "MUI.nsh"
!define MUI_PRODUCT "User Variables"
!define MUI_VERSION "1.0"
;--------------------------------
;Configuration
;General
OutFile "UserVars.exe"
ShowInstDetails nevershow
;--------------------------------
;Pages
!insertmacro MUI_PAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
; Declaration of User Variables with command DIM, allowed charaters for variables names : [a-z][A-Z][0-9] and '_'
DIM "Name"
DIM "Serial"
;--------------------------------
;Installer Sections
Section "Dummy Section" SecCopyUI
StrCpy $0 "Admin"
StrCpy "$Name" $0
StrCpy "$Serial" "12345"
MessageBox MB_OK "User Name: $Name$\n$\nSerial Number: $Serial"
SectionEnd