~ubuntu-branches/ubuntu/edgy/lasso/edgy

« back to all changes in this revision

Viewing changes to win32/nsis/lasso-full.nsi

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2004-09-13 09:26:34 UTC
  • Revision ID: james.westby@ubuntu.com-20040913092634-01vdfl8j9cp94exa
Tags: upstream-0.4.1
Import upstream version 0.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; Script generated by the HM NIS Edit Script Wizard.
 
2
 
 
3
; HM NIS Edit Wizard helper defines
 
4
!define PRODUCT_NAME "Liberty Alliance Single Sign On and all dependencies"
 
5
!define PRODUCT_VERSION "0.4.1"
 
6
!define PRODUCT_PUBLISHER "Entr'ouvert"
 
7
!define PRODUCT_WEB_SITE "http://www.entrouvert.org"
 
8
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
 
9
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
 
10
 
 
11
SetCompressor bzip2
 
12
 
 
13
; MUI 1.67 compatible ------
 
14
!include "MUI.nsh"
 
15
 
 
16
; MUI Settings
 
17
!define MUI_ABORTWARNING
 
18
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
 
19
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
 
20
 
 
21
; Language Selection Dialog Settings
 
22
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
 
23
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
 
24
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
 
25
 
 
26
; Welcome page
 
27
!insertmacro MUI_PAGE_WELCOME
 
28
; License page
 
29
!define MUI_LICENSEPAGE_RADIOBUTTONS
 
30
!insertmacro MUI_PAGE_LICENSE "..\..\COPYING"
 
31
; Components page
 
32
!insertmacro MUI_PAGE_COMPONENTS
 
33
; Instfiles page
 
34
!insertmacro MUI_PAGE_INSTFILES
 
35
; Finish page
 
36
!insertmacro MUI_PAGE_FINISH
 
37
 
 
38
; Uninstaller pages
 
39
!insertmacro MUI_UNPAGE_INSTFILES
 
40
 
 
41
; Language files
 
42
!insertmacro MUI_LANGUAGE "English"
 
43
!insertmacro MUI_LANGUAGE "French"
 
44
 
 
45
; Reserve files
 
46
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
 
47
 
 
48
; MUI end ------
 
49
 
 
50
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
 
51
OutFile "Install-full-0_4_1.exe"
 
52
InstallDir "$SYSDIR"
 
53
ShowInstDetails show
 
54
ShowUnInstDetails show
 
55
 
 
56
Function .onInit
 
57
  !insertmacro MUI_LANGDLL_DISPLAY
 
58
FunctionEnd
 
59
 
 
60
Section "glib" SEC01
 
61
  SetOutPath "$INSTDIR"
 
62
  SetOverwrite ifnewer
 
63
  File "..\..\..\..\..\usr\local\lib\libglib-2.0-0.dll"
 
64
  File "..\..\..\..\..\usr\local\lib\libgobject-2.0-0.dll"
 
65
  File "..\..\..\..\..\usr\local\lib\libgmodule-2.0-0.dll"
 
66
  File "..\..\..\..\..\usr\local\lib\libgthread-2.0-0.dll"
 
67
SectionEnd
 
68
 
 
69
Section "libxml2" SEC02
 
70
  File "..\..\..\..\..\usr\local\lib\libxml2.dll"
 
71
SectionEnd
 
72
 
 
73
Section "libxslt" SEC03
 
74
  File "..\..\..\..\..\usr\local\lib\libxslt.dll"
 
75
  File "..\..\..\..\..\usr\local\lib\libexslt.dll"
 
76
SectionEnd
 
77
 
 
78
Section "libxmlsec" SEC04
 
79
  File "..\..\..\..\..\usr\local\lib\libxmlsec.dll"
 
80
  File "..\..\..\..\..\usr\local\lib\libxmlsec-mscrypto.dll"
 
81
  File "..\..\..\..\..\usr\local\lib\libxmlsec-openssl.dll"
 
82
SectionEnd
 
83
 
 
84
Section "libopenssl" SEC05
 
85
  File "..\..\..\..\..\usr\local\lib\libeay32.dll"
 
86
  File "..\..\..\..\..\usr\local\lib\libssleay32.dll"
 
87
SectionEnd
 
88
 
 
89
Section "zlib" SEC06
 
90
  File "..\..\..\..\..\usr\local\lib\libz.dll"
 
91
SectionEnd
 
92
 
 
93
Section "iconv" SEC07
 
94
  File "..\..\..\..\..\usr\local\lib\libiconv.dll"
 
95
SectionEnd
 
96
 
 
97
Section "L.A.S.S.O." SEC08
 
98
  File  "..\..\lasso\.libs\liblasso-1.dll"
 
99
SectionEnd
 
100
 
 
101
Section -AdditionalIcons
 
102
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
 
103
  CreateDirectory "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies"
 
104
  CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
 
105
  CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Uninstall.lnk" "$INSTDIR\uninst.exe"
 
106
SectionEnd
 
107
 
 
108
Section -Post
 
109
  WriteUninstaller "$INSTDIR\uninst.exe"
 
110
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
 
111
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
 
112
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
 
113
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
 
114
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
 
115
SectionEnd
 
116
 
 
117
; Section descriptions
 
118
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 
119
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Glib DLL"
 
120
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "lixml2 DLL"
 
121
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "libxslt1 DLL"
 
122
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "libxmlsec1 DLL with openssl and mscrypto module"
 
123
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "OpenSSL DLL"
 
124
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Zlib DLL"
 
125
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "iconv DLL"
 
126
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Free implementation of the Liberty Alliance specifications."
 
127
!insertmacro MUI_FUNCTION_DESCRIPTION_END
 
128
 
 
129
 
 
130
Function un.onUninstSuccess
 
131
  HideWindow
 
132
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) a �t� d�sinstall� avec succ�s de votre ordinateur."
 
133
FunctionEnd
 
134
 
 
135
Function un.onInit
 
136
!insertmacro MUI_UNGETLANGUAGE
 
137
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "�tes-vous certains de vouloir d�sinstaller totalement $(^Name) et tous ses composants ?" IDYES +2
 
138
  Abort
 
139
FunctionEnd
 
140
 
 
141
Section Uninstall
 
142
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
 
143
  Delete "$INSTDIR\uninst.exe"
 
144
  Delete "$INSTDIR\liblasso-1.dll"
 
145
  Delete "$INSTDIR\libiconv.dll"
 
146
  Delete "$INSTDIR\libz.dll"
 
147
  Delete "$INSTDIR\libssleay32.dll"
 
148
  Delete "$INSTDIR\libeay32.dll"
 
149
  Delete "$INSTDIR\libxmlsec-openssl.dll"
 
150
  Delete "$INSTDIR\libxmlsec-mscrypto.dll"
 
151
  Delete "$INSTDIR\libxmlsec.dll"
 
152
  Delete "$INSTDIR\libexslt.dll"
 
153
  Delete "$INSTDIR\libxslt.dll"
 
154
  Delete "$INSTDIR\libxml2.dll"
 
155
  Delete "$INSTDIR\libgthread-2.0-0.dll"
 
156
  Delete "$INSTDIR\libgmodule-2.0-0.dll"
 
157
  Delete "$INSTDIR\libgobject-2.0-0.dll"
 
158
  Delete "$INSTDIR\libglib-2.0-0.dll"
 
159
 
 
160
  Delete "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Uninstall.lnk"
 
161
  Delete "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies\Website.lnk"
 
162
 
 
163
  RMDir "$SMPROGRAMS\Liberty Alliance Single Sign On & Dependencies"
 
164
  RMDir "$INSTDIR"
 
165
 
 
166
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
 
167
  SetAutoClose true
 
168
SectionEnd