~ubuntu-branches/ubuntu/utopic/lasso/utopic-proposed

« back to all changes in this revision

Viewing changes to win32/nsis/lasso-lite.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"
 
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-lite-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 "L.A.S.S.O." SEC08
 
61
  File "..\..\lasso\.libs\liblasso-1.dll"
 
62
SectionEnd
 
63
 
 
64
Section -AdditionalIcons
 
65
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
 
66
  CreateDirectory "$SMPROGRAMS\Liberty Alliance Single Sign On"
 
67
  CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
 
68
  CreateShortCut "$SMPROGRAMS\Liberty Alliance Single Sign On\Uninstall.lnk" "$INSTDIR\uninst.exe"
 
69
SectionEnd
 
70
 
 
71
Section -Post
 
72
  WriteUninstaller "$INSTDIR\uninst.exe"
 
73
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
 
74
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
 
75
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
 
76
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
 
77
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
 
78
SectionEnd
 
79
 
 
80
; Section descriptions
 
81
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 
82
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Free implementation of the Liberty Alliance specifications."
 
83
!insertmacro MUI_FUNCTION_DESCRIPTION_END
 
84
 
 
85
 
 
86
Function un.onUninstSuccess
 
87
  HideWindow
 
88
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) a �t� d�sinstall� avec succ�s de votre ordinateur."
 
89
FunctionEnd
 
90
 
 
91
Function un.onInit
 
92
!insertmacro MUI_UNGETLANGUAGE
 
93
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "�tes-vous certains de vouloir d�sinstaller totalement $(^Name) et tous ses composants ?" IDYES +2
 
94
  Abort
 
95
FunctionEnd
 
96
 
 
97
Section Uninstall
 
98
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
 
99
  Delete "$INSTDIR\uninst.exe"
 
100
  Delete "$INSTDIR\liblasso-1.dll"
 
101
 
 
102
  Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Uninstall.lnk"
 
103
  Delete "$SMPROGRAMS\Liberty Alliance Single Sign On\Website.lnk"
 
104
 
 
105
  RMDir "$SMPROGRAMS\Liberty Alliance Single Sign On"
 
106
  RMDir "$INSTDIR"
 
107
 
 
108
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
 
109
  SetAutoClose true
 
110
SectionEnd