--- joko/ToolBox/Windows/VpnDial-installer/vpn.nsi 2005/11/21 19:55:43 1.2 +++ joko/ToolBox/Windows/VpnDial-installer/vpn.nsi 2005/11/21 21:45:29 1.3 @@ -1,5 +1,5 @@ ; VpnDial.nsi -; $Id: vpn.nsi,v 1.2 2005/11/21 19:55:43 joko Exp $ +; $Id: vpn.nsi,v 1.3 2005/11/21 21:45:29 joko Exp $ ; ; This script can install VpnDial, ; has uninstall support and (optionally) installs start menu shortcuts. @@ -52,6 +52,8 @@ UninstPage instfiles ;!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt" +!insertmacro MUI_PAGE_WELCOME +Page custom Setup !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES @@ -67,14 +69,23 @@ Function .onInit -System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e' -Pop $R0 -StrCmp $R0 0 +3 - MessageBox MB_OK|MB_ICONEXCLAMATION "Die Installation läuft bereits." - Abort + System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e' + Pop $R0 + StrCmp $R0 0 +3 + MessageBox MB_OK|MB_ICONEXCLAMATION "Die Installation läuft bereits." + Abort + + !insertmacro MUI_INSTALLOPTIONS_EXTRACT "vpndial_settings.ini" FunctionEnd +Function Setup + ; custom page + ; see: http://nsis.sourceforge.net/Docs/Modern%20UI/Readme.html#customPages + ; and: http://nsis.sourceforge.net/Docs/InstallOptions/Readme.html + !insertmacro MUI_HEADER_TEXT "VpnDial Einstellungen" "Bitte füllen Sie folgende Angaben aus" + !insertmacro MUI_INSTALLOPTIONS_DISPLAY "vpndial_settings.ini" +FunctionEnd ; -------------------------------- ; The stuff to install