/[cvs]/joko/ToolBox/Windows/VpnDial-installer/vpn.nsi
ViewVC logotype

Diff of /joko/ToolBox/Windows/VpnDial-installer/vpn.nsi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Fri Nov 18 19:44:44 2005 UTC revision 1.3 by joko, Mon Nov 21 21:45:29 2005 UTC
# Line 5  Line 5 
5  ; has uninstall support and (optionally) installs start menu shortcuts.  ; has uninstall support and (optionally) installs start menu shortcuts.
6  ;  ;
7    
8  !include "connection.nsi"  !include "MUI.nsh"
9  !include "vpn_functions.nsi"  !include "parameter.nsi"
10    !include "file_functions.nsi"
11    
12    
13  ; --------------------------------  ; --------------------------------
# Line 25  InstallDir $PROGRAMFILES\NetFragOrg\VpnD Line 26  InstallDir $PROGRAMFILES\NetFragOrg\VpnD
26  InstallDirRegKey HKLM "Software\NSIS_VpnDial" "Install_Dir"  InstallDirRegKey HKLM "Software\NSIS_VpnDial" "Install_Dir"
27    
28  ; more options: language of the installer & installer style  ; more options: language of the installer & installer style
29  LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf"  ;LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf"
30  XPStyle on  ;XPStyle on
31    
32    SetOverwrite on
33    
34    
35  ; --------------------------------  ; --------------------------------
36  ;   Pages  ; (MUI) Interface Settings
37  ; --------------------------------  ; --------------------------------
38    !define MUI_ABORTWARNING
39    !define MUI_COMPONENTSPAGE_NODESC
40    !define MUI_ICON "key.ico"
41    !define MUI_UNICON "key.ico"
42    
43    
44  Page components  ; --------------------------------
45  Page directory  ;   Pages
46  Page instfiles  ; --------------------------------
47    ;Page components
48    ;Page directory
49    ;Page instfiles
50    
51  UninstPage uninstConfirm  UninstPage uninstConfirm
52  UninstPage instfiles  UninstPage instfiles
53    
54    ;!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
55    !insertmacro MUI_PAGE_WELCOME
56    Page custom Setup
57    !insertmacro MUI_PAGE_COMPONENTS
58    !insertmacro MUI_PAGE_DIRECTORY
59    !insertmacro MUI_PAGE_INSTFILES
60    
61    !insertmacro MUI_UNPAGE_CONFIRM
62    !insertmacro MUI_UNPAGE_INSTFILES
63    !insertmacro MUI_LANGUAGE "German"
64    
65    
66    ; --------------------------------
67    ; .onInit
68    ; --------------------------------
69    
70    Function .onInit
71    
72      System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
73      Pop $R0
74      StrCmp $R0 0 +3
75        MessageBox MB_OK|MB_ICONEXCLAMATION "Die Installation läuft bereits."
76        Abort
77    
78      !insertmacro MUI_INSTALLOPTIONS_EXTRACT "vpndial_settings.ini"
79    
80    FunctionEnd
81    
82    Function Setup
83      ; custom page
84      ; see: http://nsis.sourceforge.net/Docs/Modern%20UI/Readme.html#customPages
85      ; and: http://nsis.sourceforge.net/Docs/InstallOptions/Readme.html
86      !insertmacro MUI_HEADER_TEXT "VpnDial Einstellungen" "Bitte füllen Sie folgende Angaben aus"
87      !insertmacro MUI_INSTALLOPTIONS_DISPLAY "vpndial_settings.ini"
88    FunctionEnd
89    
90  ; --------------------------------  ; --------------------------------
91  ;   The stuff to install  ;   The stuff to install
92  ; --------------------------------  ; --------------------------------
# Line 53  Section Line 100  Section
100    Pop $1 #Found at all? yes/no    Pop $1 #Found at all? yes/no
101    Pop $2 #Number of lines found in    Pop $2 #Number of lines found in
102    StrCmp $1 yes 0 +3    StrCmp $1 yes 0 +3
103    MessageBox MB_OK "$\"[$connectionname]$\" was found already found. Cannot create. Sorry."    MessageBox MB_OK "Die Verbindung $\"$connectionname$\" existiert bereits. Der Eintrag kann leider nicht doppelt angelegt werden."
104    Abort    Abort
105  SectionEnd  SectionEnd
106    
107  Section "VpnDial" IDX_VpnDial  Section "VpnDial" IDX_VpnDial
108    
109      SetOverwrite on
110        
111    SetDetailsPrint both    SetDetailsPrint both
112    DetailPrint "Installiere VpnDial..."    DetailPrint "Installiere VpnDial..."
113    
# Line 70  Section "VpnDial" IDX_VpnDial Line 119  Section "VpnDial" IDX_VpnDial
119    ;CreateDirectory $INSTDIR\certs\    ;CreateDirectory $INSTDIR\certs\
120    
121    ; Put file there    ; Put file there
   ;File /r "C:\IPSec\nsis\vpndial\*.*"  
122    File /r "vpndial\*.*"    File /r "vpndial\*.*"
123    ;File "C:\IPSec\nsis\vpndial\certs\"      
   ;File "C:\IPSec\nsis\vpndial\certs\*.*"  
     
124    ; Write the installation path into the registry    ; Write the installation path into the registry
125    WriteRegStr HKLM Software\NSIS_VpnDial "Install_Dir" "$INSTDIR"    WriteRegStr HKLM Software\NSIS_VpnDial "Install_Dir" "$INSTDIR"
126        
# Line 130  nsExec::Exec "$INSTDIR\bin\winhttpcertcf Line 176  nsExec::Exec "$INSTDIR\bin\winhttpcertcf
176  SectionEnd  SectionEnd
177    
178  ; Optional section (can be disabled by the user)  ; Optional section (can be disabled by the user)
179  Section "Start Menu Shortcuts" IDX_STARTMENU  Section "Startmenü-Einträge" IDX_STARTMENU
180    
181    SetDetailsPrint both    SetDetailsPrint both
182    DetailPrint "Installiere Startmenü-Einträge und Desktop-Verknüpfungen..."    DetailPrint "Installiere Startmenü-Einträge und Desktop-Verknüpfungen..."
# Line 142  Section "Start Menu Shortcuts" IDX_START Line 188  Section "Start Menu Shortcuts" IDX_START
188    ;CreateShortCut "$SMPROGRAMS\VpnDial\VpnSetup.lnk" "$INSTDIR\bin\VpnDial.exe" "--setup $connectionname --user $username --pass $userpass" "$INSTDIR\bin\VpnDial.exe" 0    ;CreateShortCut "$SMPROGRAMS\VpnDial\VpnSetup.lnk" "$INSTDIR\bin\VpnDial.exe" "--setup $connectionname --user $username --pass $userpass" "$INSTDIR\bin\VpnDial.exe" 0
189    CreateShortCut "$SMPROGRAMS\VpnDial\Zertifikate.lnk" "$INSTDIR\certs\" "" "$INSTDIR\certs\" 0    CreateShortCut "$SMPROGRAMS\VpnDial\Zertifikate.lnk" "$INSTDIR\certs\" "" "$INSTDIR\certs\" 0
190    CreateShortCut "$SMPROGRAMS\VpnDial\ZertifikatsVerwaltung.lnk" "$INSTDIR\links\IPSec.msc" "" "$INSTDIR\links\IPSec.msc" 0    CreateShortCut "$SMPROGRAMS\VpnDial\ZertifikatsVerwaltung.lnk" "$INSTDIR\links\IPSec.msc" "" "$INSTDIR\links\IPSec.msc" 0
191    CreateShortCut "$SMPROGRAMS\VpnDial\README.lnk" "$INSTDIR\doc\README.txt" "" "$INSTDIR\doc\README.txt" 0    ;CreateShortCut "$SMPROGRAMS\VpnDial\README.lnk" "$INSTDIR\doc\README.txt" "" "$INSTDIR\doc\README.txt" 0
192    CreateShortCut "$SMPROGRAMS\VpnDial\README-HTML.lnk" "$INSTDIR\doc\README.htm" "" "$INSTDIR\doc\README.htm" 0    ;CreateShortCut "$SMPROGRAMS\VpnDial\README-HTML.lnk" "$INSTDIR\doc\README.htm" "" "$INSTDIR\doc\README.htm" 0
193    
194    CopyFiles "$INSTDIR\links\Netzwerkverbindung*" "$SMPROGRAMS\VpnDial\"    CopyFiles "$INSTDIR\links\Netzwerkverbindung*" "$SMPROGRAMS\VpnDial\"
195    
196  SectionEnd  SectionEnd
197    
198    
   
199  ; --------------------------------  ; --------------------------------
200  ;   Uninstaller  ;   Uninstaller
201  ; --------------------------------  ; --------------------------------

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed