Updated NSI file and added java NSI.

This commit is contained in:
Romain Chantereay 2004-09-06 16:52:53 +00:00
parent 7acad8e5e7
commit 679621c895
4 changed files with 144 additions and 62 deletions

110
win32/nsis/jlasso-lite.nsi Executable file
View File

@ -0,0 +1,110 @@
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Liberty Alliance Single Sign On Java"
!define PRODUCT_VERSION "0.4"
!define PRODUCT_PUBLISHER "Entr'ouvert"
!define PRODUCT_WEB_SITE "http://www.entrouvert.org"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
SetCompressor bzip2
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
; Language Selection Dialog Settings
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "..\..\COPYING"
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!insertmacro MUI_PAGE_FINISH
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Install-lite.exe"
InstallDir "$SYSDIR"
ShowInstDetails show
ShowUnInstDetails show
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
Section "L.A.S.S.O. Java" SEC08
File "..\..\java\.libs\libjlasso.dll"
SectionEnd
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateDirectory "$SMPROGRAMS\Liberty Alliance Single Sign On Java"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On Java\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On Java\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
; Section descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Free implementation of the Liberty Alliance specifications."
!insertmacro MUI_FUNCTION_DESCRIPTION_END
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) a été désinstallé avec succès de votre ordinateur."
FunctionEnd
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Êtes-vous certains de vouloir désinstaller totalement $(^Name) et tous ses composants ?" IDYES +2
Abort
FunctionEnd
Section Uninstall
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\libjlasso.dll"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On Java\Uninstall.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On Java\Website.lnk"
RMDir "$SMPROGRAMS\Liberty Alliance Single Sign On Java"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
SetAutoClose true
SectionEnd

View File

@ -2,9 +2,9 @@
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "LASSO dependencies"
!define PRODUCT_VERSION "0.3"
!define PRODUCT_VERSION "0.4"
!define PRODUCT_PUBLISHER "Entr'ouvert"
!define PRODUCT_WEB_SITE "http://www.entrouvert.org"
!define PRODUCT_WEB_SITE "http://lasso.entrouvert.org"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
@ -83,23 +83,22 @@ SectionEnd
Section "libopenssl" SEC05
File "..\..\..\..\..\usr\local\lib\libeay32.dll"
File "..\..\..\..\..\usr\local\lib\libssl32.dll"
File "..\..\..\..\..\usr\local\lib\ssleay32.dll"
File "..\..\..\..\..\usr\local\lib\libssleay32.dll"
SectionEnd
Section "zlib" SEC06
File "..\..\..\..\..\usr\local\lib\zlib.dll"
File "..\..\..\..\..\usr\local\lib\libz.dll"
SectionEnd
Section "iconv" SEC07
File "..\..\..\..\..\usr\local\lib\iconv.dll"
File "..\..\..\..\..\usr\local\lib\libiconv.dll"
SectionEnd
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateDirectory "$SMPROGRAMS\Liberty Alliance Single Sign On"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On\Uninstall.lnk" "$INSTDIR\uninst.exe"
CreateDirectory "$SMPROGRAMS\Liberty Alliance Single Sign On Dependencies"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On Dependencies\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On Dependencies\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd
Section -Post
@ -120,7 +119,6 @@ SectionEnd
!insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "OpenSSL DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Zlib DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "iconv DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Free implementation of the Liberty Alliance specifications."
!insertmacro MUI_FUNCTION_DESCRIPTION_END
@ -138,11 +136,9 @@ FunctionEnd
Section Uninstall
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\liblasso.dll"
Delete "$INSTDIR\iconv.dll"
Delete "$INSTDIR\zlib.dll"
Delete "$INSTDIR\ssleay32.dll"
Delete "$INSTDIR\libssl32.dll"
Delete "$INSTDIR\libiconv.dll"
Delete "$INSTDIR\libz.dll"
Delete "$INSTDIR\libssleay32.dll"
Delete "$INSTDIR\libeay32.dll"
Delete "$INSTDIR\libxmlsec-openssl.dll"
Delete "$INSTDIR\libxmlsec-mscrypto.dll"
@ -155,10 +151,10 @@ Section Uninstall
Delete "$INSTDIR\libgobject-2.0-0.dll"
Delete "$INSTDIR\libglib-2.0-0.dll"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Uninstall.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Website.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On Dependencies\Uninstall.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On Dependencies\Website.lnk"
RMDir "$SMPROGRAMS\Liberty Alliance Single Sign On"
RMDir "$SMPROGRAMS\Liberty Alliance Single Sign On Dependencies"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"

View File

@ -2,7 +2,7 @@
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Liberty Alliance Single Sign On and all dependencies"
!define PRODUCT_VERSION "0.3"
!define PRODUCT_VERSION "0.4"
!define PRODUCT_PUBLISHER "Entr'ouvert"
!define PRODUCT_WEB_SITE "http://www.entrouvert.org"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
@ -83,27 +83,26 @@ SectionEnd
Section "libopenssl" SEC05
File "..\..\..\..\..\usr\local\lib\libeay32.dll"
File "..\..\..\..\..\usr\local\lib\libssl32.dll"
File "..\..\..\..\..\usr\local\lib\ssleay32.dll"
File "..\..\..\..\..\usr\local\lib\libssleay32.dll"
SectionEnd
Section "zlib" SEC06
File "..\..\..\..\..\usr\local\lib\zlib.dll"
File "..\..\..\..\..\usr\local\lib\libz.dll"
SectionEnd
Section "iconv" SEC07
File "..\..\..\..\..\usr\local\lib\iconv.dll"
File "..\..\..\..\..\usr\local\lib\libiconv.dll"
SectionEnd
Section "lasso" SEC08
File "..\..\..\..\..\usr\local\lib\liblasso.dll"
Section "L.A.S.S.O." SEC08
File "..\..\lasso\.libs\liblasso-1.dll"
SectionEnd
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateDirectory "$SMPROGRAMS\Liberty Alliance Single Sign On"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On\Uninstall.lnk" "$INSTDIR\uninst.exe"
CreateDirectory "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd
Section -Post
@ -142,11 +141,10 @@ FunctionEnd
Section Uninstall
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\liblasso.dll"
Delete "$INSTDIR\iconv.dll"
Delete "$INSTDIR\zlib.dll"
Delete "$INSTDIR\ssleay32.dll"
Delete "$INSTDIR\libssl32.dll"
Delete "$INSTDIR\liblasso-1.dll"
Delete "$INSTDIR\libiconv.dll"
Delete "$INSTDIR\libz.dll"
Delete "$INSTDIR\libssleay32.dll"
Delete "$INSTDIR\libeay32.dll"
Delete "$INSTDIR\libxmlsec-openssl.dll"
Delete "$INSTDIR\libxmlsec-mscrypto.dll"
@ -159,10 +157,10 @@ Section Uninstall
Delete "$INSTDIR\libgobject-2.0-0.dll"
Delete "$INSTDIR\libglib-2.0-0.dll"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Uninstall.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Website.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Uninstall.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Website.lnk"
RMDir "$SMPROGRAMS\Liberty Alliance Single Sign On"
RMDir "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"

View File

@ -2,7 +2,7 @@
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Liberty Alliance Single Sign On"
!define PRODUCT_VERSION "0.3"
!define PRODUCT_VERSION "0.4"
!define PRODUCT_PUBLISHER "Entr'ouvert"
!define PRODUCT_WEB_SITE "http://www.entrouvert.org"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
@ -57,8 +57,8 @@ Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
Section "lasso" SEC08
File "..\..\..\..\..\usr\local\lib\liblasso.dll"
Section "L.A.S.S.O." SEC08
File "..\..\lasso\.libs\liblasso-1.dll"
SectionEnd
Section -AdditionalIcons
@ -79,13 +79,6 @@ SectionEnd
; Section descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Glib DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "lixml2 DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "libxslt1 DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "libxmlsec1 DLL with openssl and mscrypto module"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "OpenSSL DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Zlib DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "iconv DLL"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Free implementation of the Liberty Alliance specifications."
!insertmacro MUI_FUNCTION_DESCRIPTION_END
@ -104,22 +97,7 @@ FunctionEnd
Section Uninstall
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\liblasso.dll"
Delete "$INSTDIR\iconv.dll"
Delete "$INSTDIR\zlib.dll"
Delete "$INSTDIR\ssleay32.dll"
Delete "$INSTDIR\libssl32.dll"
Delete "$INSTDIR\libeay32.dll"
Delete "$INSTDIR\libxmlsec-openssl.dll"
Delete "$INSTDIR\libxmlsec-mscrypto.dll"
Delete "$INSTDIR\libxmlsec.dll"
Delete "$INSTDIR\libexslt.dll"
Delete "$INSTDIR\libxslt.dll"
Delete "$INSTDIR\libxml2.dll"
Delete "$INSTDIR\libgthread-2.0-0.dll"
Delete "$INSTDIR\libgmodule-2.0-0.dll"
Delete "$INSTDIR\libgobject-2.0-0.dll"
Delete "$INSTDIR\libglib-2.0-0.dll"
Delete "$INSTDIR\liblasso-1.dll"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Uninstall.lnk"
Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Website.lnk"