summaryrefslogtreecommitdiffstats
path: root/install-win32/openvpn.nsi
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-03-11 06:03:12 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-03-11 06:03:12 +0000
commit9ca8f3cf77b7d5ec5956777c2f2e8807bdbcca24 (patch)
tree6970b8022db6709ba2153f5790d4d2f9bdcc071d /install-win32/openvpn.nsi
parentd4fb6d493a040c354d4d1f1a089f017db7efdb3d (diff)
downloadopenvpn-9ca8f3cf77b7d5ec5956777c2f2e8807bdbcca24.tar.gz
openvpn-9ca8f3cf77b7d5ec5956777c2f2e8807bdbcca24.tar.xz
openvpn-9ca8f3cf77b7d5ec5956777c2f2e8807bdbcca24.zip
Misc XGUI fixes.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2836 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'install-win32/openvpn.nsi')
-rwxr-xr-xinstall-win32/openvpn.nsi33
1 files changed, 20 insertions, 13 deletions
diff --git a/install-win32/openvpn.nsi b/install-win32/openvpn.nsi
index f6623f8..e51217d 100755
--- a/install-win32/openvpn.nsi
+++ b/install-win32/openvpn.nsi
@@ -64,7 +64,8 @@
!define XGUI_XMLSERV ovpn-xmlserv.exe
!define XGUI_HTDOCS htdocs
-!define XGUI_AJAX_GUI_NAME "${PRODUCT_NAME} Ajax GUI"
+!define XGUI_AJAX_GUI_NAME "${PRODUCT_NAME} Ajax GUI"
+!define XGUI_TRANSITION_GUI_NAME "${PRODUCT_NAME} Transitional GUI"
;--------------------------------
;Configuration
@@ -94,9 +95,13 @@
!define MUI_COMPONENTSPAGE_TEXT_TOP "Select the components to install/upgrade. Stop any ${PRODUCT_NAME} processes or the ${PRODUCT_NAME} service if it is running. All DLLs are installed locally."
!define MUI_COMPONENTSPAGE_SMALLDESC
- !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\INSTALL-win32.txt"
+ !ifdef USE_XGUI
+ !define MUI_FINISHPAGE_SHOWREADME "http://openvpn.net/"
+ !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
+ !else
+ !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\INSTALL-win32.txt"
+ !endif
!define MUI_FINISHPAGE_NOAUTOCLOSE
-# !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_ABORTWARNING
!define MUI_ICON "${HOME}\images\${PRODUCT_ICON}"
!define MUI_UNICON "${HOME}\images\${PRODUCT_ICON}"
@@ -488,7 +493,9 @@ Section -post
; Store README, license, icon
SetOverwrite on
SetOutPath $INSTDIR
- File "${GEN}\text\INSTALL-win32.txt"
+ !ifndef USE_XGUI
+ File "${GEN}\text\INSTALL-win32.txt"
+ !endif
File "${GEN}\text\license.txt"
File "${HOME}\images\${PRODUCT_ICON}"
@@ -629,8 +636,8 @@ Section -post
tryaddxgui:
!ifdef USE_XGUI
IfFileExists "$INSTDIR\bin\${XGUI_EXE}" "" tryaddtray
- CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME} GUI.lnk" "$INSTDIR\bin\${XGUI_EXE}" ""
- CreateShortcut "$DESKTOP\${PRODUCT_NAME} GUI.lnk" "$INSTDIR\bin\${XGUI_EXE}"
+ CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${XGUI_TRANSITION_GUI_NAME}.lnk" "$INSTDIR\bin\${XGUI_EXE}" ""
+# CreateShortcut "$DESKTOP\${XGUI_TRANSITION_GUI_NAME}.lnk" "$INSTDIR\bin\${XGUI_EXE}"
tryaddtray:
IfFileExists "$INSTDIR\bin\${XGUI_TRAY}" "" tryaddtap
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${XGUI_AJAX_GUI_NAME}.lnk" "$INSTDIR\bin\${XGUI_EXE}" ""
@@ -719,18 +726,18 @@ FunctionEnd
Section "Uninstall"
- ; Stop OpenVPN if currently running
- DetailPrint "Service REMOVE"
- nsExec::ExecToLog '"$INSTDIR\bin\${PRODUCT_UNIX_NAME}serv.exe" -remove'
- Pop $R0 # return value/error/timeout
-
!ifdef USE_XGUI
DetailPrint "XML Service REMOVE"
nsExec::ExecToLog '"$INSTDIR\bin\${XGUI_XMLSERV}" -remove'
Pop $R0 # return value/error/timeout
!endif
- Sleep 2000
+ ; Stop OpenVPN if currently running
+ DetailPrint "Service REMOVE"
+ nsExec::ExecToLog '"$INSTDIR\bin\${PRODUCT_UNIX_NAME}serv.exe" -remove'
+ Pop $R0 # return value/error/timeout
+
+ Sleep 3000
DetailPrint "TAP REMOVE"
nsExec::ExecToLog '"$INSTDIR\bin\tapinstall.exe" remove ${TAP}'
@@ -766,7 +773,7 @@ Section "Uninstall"
Delete "$INSTDIR\bin\${XGUI_XMLSERV}"
RMDir /r "$INSTDIR\${XGUI_HTDOCS}"
Delete "$DESKTOP\${XGUI_AJAX_GUI_NAME}.lnk"
- Delete "$DESKTOP\${PRODUCT_NAME} GUI.lnk"
+ Delete "$DESKTOP\${XGUI_TRANSITION_GUI_NAME}.lnk"
!endif
Delete "$INSTDIR\bin\${PRODUCT_UNIX_NAME}.exe"