/[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.2 by joko, Mon Nov 21 19:55:43 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_COMPONENTS
56    !insertmacro MUI_PAGE_DIRECTORY
57    !insertmacro MUI_PAGE_INSTFILES
58    
59    !insertmacro MUI_UNPAGE_CONFIRM
60    !insertmacro MUI_UNPAGE_INSTFILES
61    !insertmacro MUI_LANGUAGE "German"
62    
63    
64    ; --------------------------------
65    ; .onInit
66    ; --------------------------------
67    
68    Function .onInit
69    
70    System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
71    Pop $R0
72    StrCmp $R0 0 +3
73      MessageBox MB_OK|MB_ICONEXCLAMATION "Die Installation läuft bereits."
74      Abort
75    
76    FunctionEnd
77    
78    
79  ; --------------------------------  ; --------------------------------
80  ;   The stuff to install  ;   The stuff to install
81  ; --------------------------------  ; --------------------------------
# Line 53  Section Line 89  Section
89    Pop $1 #Found at all? yes/no    Pop $1 #Found at all? yes/no
90    Pop $2 #Number of lines found in    Pop $2 #Number of lines found in
91    StrCmp $1 yes 0 +3    StrCmp $1 yes 0 +3
92    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."
93    Abort    Abort
94  SectionEnd  SectionEnd
95    
96  Section "VpnDial" IDX_VpnDial  Section "VpnDial" IDX_VpnDial
97    
98      SetOverwrite on
99        
100    SetDetailsPrint both    SetDetailsPrint both
101    DetailPrint "Installiere VpnDial..."    DetailPrint "Installiere VpnDial..."
102    
# Line 70  Section "VpnDial" IDX_VpnDial Line 108  Section "VpnDial" IDX_VpnDial
108    ;CreateDirectory $INSTDIR\certs\    ;CreateDirectory $INSTDIR\certs\
109    
110    ; Put file there    ; Put file there
   ;File /r "C:\IPSec\nsis\vpndial\*.*"  
111    File /r "vpndial\*.*"    File /r "vpndial\*.*"
112    ;File "C:\IPSec\nsis\vpndial\certs\"      
   ;File "C:\IPSec\nsis\vpndial\certs\*.*"  
     
113    ; Write the installation path into the registry    ; Write the installation path into the registry
114    WriteRegStr HKLM Software\NSIS_VpnDial "Install_Dir" "$INSTDIR"    WriteRegStr HKLM Software\NSIS_VpnDial "Install_Dir" "$INSTDIR"
115        
# Line 130  nsExec::Exec "$INSTDIR\bin\winhttpcertcf Line 165  nsExec::Exec "$INSTDIR\bin\winhttpcertcf
165  SectionEnd  SectionEnd
166    
167  ; Optional section (can be disabled by the user)  ; Optional section (can be disabled by the user)
168  Section "Start Menu Shortcuts" IDX_STARTMENU  Section "Startmenü-Einträge" IDX_STARTMENU
169    
170    SetDetailsPrint both    SetDetailsPrint both
171    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 177  Section "Start Menu Shortcuts" IDX_START
177    ;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
178    CreateShortCut "$SMPROGRAMS\VpnDial\Zertifikate.lnk" "$INSTDIR\certs\" "" "$INSTDIR\certs\" 0    CreateShortCut "$SMPROGRAMS\VpnDial\Zertifikate.lnk" "$INSTDIR\certs\" "" "$INSTDIR\certs\" 0
179    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
180    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
181    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
182    
183    CopyFiles "$INSTDIR\links\Netzwerkverbindung*" "$SMPROGRAMS\VpnDial\"    CopyFiles "$INSTDIR\links\Netzwerkverbindung*" "$SMPROGRAMS\VpnDial\"
184    
185  SectionEnd  SectionEnd
186    
187    
   
188  ; --------------------------------  ; --------------------------------
189  ;   Uninstaller  ;   Uninstaller
190  ; --------------------------------  ; --------------------------------

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

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