; Installation de l'interface HTML du Bureau Libre Free-EOS et des tutoriels.
; Version 1.2
; © 2004-2005 Fabien ILLIDE - fabienillide@users.sourceforge.net - Free-EOS.org
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
!verbose 3
!ifdef CURLANG
!undef CURLANG
!endif
!define CURLANG ${LANG_FRENCH}
!define PRODUCT "Tutoriels Bureau Libre Free-EOS"
!define PRODUCT_SHORT "TutorielsBureauLibreFree-EOS"
!define PRODUCT_VERSION "1.2"
!define PRODUCT_COPYRIGHT "GNU Public License (GPL)"
Name "${PRODUCT} ${PRODUCT_VERSION}"
VIProductVersion "0.1.2.0"
OutFile "Installer${PRODUCT_SHORT}.exe"
BrandingText "${PRODUCT} ${PRODUCT_VERSION} © 2004-2005 Free-EOS"
WindowIcon on
CRCCheck on
SetCompressor lzma
SetDatablockOptimize on
XPStyle on
InstProgressFlags smooth colored
Section
AddSize 52785
SetShellVarContext all
CreateDirectory "$PROGRAMFILES\${PRODUCT_SHORT}"
SetOutPath "$PROGRAMFILES\${PRODUCT_SHORT}"
File /r interface_html
File /r tutoriels
CreateShortCut "$DESKTOP\${PRODUCT_SHORT}.lnk" "$PROGRAMFILES\${PRODUCT_SHORT}\interface_html\index.htm"
SectionEnd
Section -Postinstall
SetShellVarContext all
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_SHORT}" "DisplayName" "${PRODUCT}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_SHORT}" "UninstallString" "$PROGRAMFILES\${PRODUCT_SHORT}\uninstall.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_SHORT}" "Publisher" "Free-EOS"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_SHORT}" "URLInfoAbout" "http://free-eos.org/"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_SHORT}" "URLUpdateInfo" "http://sourceforge.net/project/showfiles.php?group_id=61518&package_id=141633"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_SHORT}" "DisplayVersion" "1.2"
WriteUninstaller "$PROGRAMFILES\${PRODUCT_SHORT}\uninstall.exe"
SectionEnd
Function un.onInit
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Êtes-vous certain de vouloir supprimer $(^Name) ?" IDYES +2
Abort
FunctionEnd
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) a été désinstallé avec succès."
FunctionEnd
Section Uninstall
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_SHORT}"
SetShellVarContext all
RMDir /r /REBOOTOK "$PROGRAMFILES\${PRODUCT_SHORT}"
Delete /REBOOTOK "$DESKTOP\${PRODUCT_SHORT}.lnk"
SetAutoClose true
SectionEnd