/[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.6 by janosch, Tue Nov 22 15:50:55 2005 UTC revision 1.8 by joko, Tue Nov 22 16:39:50 2005 UTC
# Line 6  Line 6 
6  ;  ;
7    
8  !include "MUI.nsh"  !include "MUI.nsh"
9  !include "variables-decleration.nsi"  !include "variables-declaration.nsi"
10    !include "string_functions.nsi"
11  !include "file_functions.nsi"  !include "file_functions.nsi"
12    !include "ras_functions.nsi"
13    
14    
15  ; --------------------------------  ; --------------------------------
# Line 63  Page custom SetupPage3 Line 65  Page custom SetupPage3
65    
66  Function .onInit  Function .onInit
67    
68    
69    System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'    System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
70    Pop $R0    Pop $R0
71    StrCmp $R0 0 +3    StrCmp $R0 0 +3
# Line 188  Section "VpnDial" IDX_VpnDial Line 191  Section "VpnDial" IDX_VpnDial
191    
192  SectionEnd  SectionEnd
193    
194    
195    
196    
197    ; ---------------------------------------------------------------------------
198    
199    ;               pbk-Datei anpassen
200    
201    ; ---------------------------------------------------------------------------
202    
203    
204    
205    ; Verbindungsname
206  Section  Section
207    DetailPrint "Installiere VPN-Verbindung..."    DetailPrint "Installiere VPN-Verbindung..."
208    Push "[##connectionname##]"            #-- text to be replaced  within the " "    Push "[##connectionname##]"            #-- text to be replaced  within the " "
# Line 198  Section Line 213  Section
213    Call AdvReplaceInFile         #-- Call the Function    Call AdvReplaceInFile         #-- Call the Function
214  SectionEnd  SectionEnd
215    
216    ; Gegenstelle
217  Section  Section
218    Push "PhoneNumber=##destinationhost##"            #-- text to be replaced  within the " "    Push "PhoneNumber=##destinationhost##"            #-- text to be replaced  within the " "
219    Push "PhoneNumber=$destination_host"             #-- replace with anything within the " "    Push "PhoneNumber=$destination_host"             #-- replace with anything within the " "
# Line 207  Section Line 223  Section
223    Call AdvReplaceInFile         #-- Call the Function    Call AdvReplaceInFile         #-- Call the Function
224  SectionEnd  SectionEnd
225    
226    
227    ; GUID
228    Section
229    
230      Call CreateRasGUID
231    
232      Pop $0                        ; contains GUID
233    
234      Push "Guid=##guid##"            #-- text to be replaced  within the " "
235      Push "Guid=$0"             #-- replace with anything within the " "
236      Push all                      #-- replace all occurrences
237      Push all                      #-- replace all occurrences
238      Push "$INSTDIR\pbk\connection.pbk"      #-- file to replace in
239      Call AdvReplaceInFile         #-- Call the Function
240    SectionEnd
241    
242    
243    ; Verbindungsdatei mit globaler Datei zusammenführen
244  Section  Section
245    SetShellVarContext all    SetShellVarContext all
246      Push $INSTDIR\pbk\rasphone.pbk      Push $INSTDIR\pbk\rasphone.pbk

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

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