; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Webdelib - LibreOffice"
#define MyAppVersion "0.0.23"
#define MyAppPublisher "Conseil Général de la Creuse"
#define MyAppURL "http://delib.cg23.fr/"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{4B71F10A-2CEC-4B78-A5AA-4BC4A26C58FC}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:\LibreOffice
DisableDirPage=true
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
OutputDir=C:\Users\delavigne\Desktop
OutputBaseFilename=webdelib-LibreOffice-Install
Compression=lzma/ultra64
SolidCompression=true
DisableWelcomePage=True
DisableReadyPage=True
DisableReadyMemo=True
DisableFinishedPage=True
RestartIfNeededByRun=false
AllowCancelDuringInstall=false
AppContact=Alain Delavigne
AppSupportPhone=05 44 30 26 79
Uninstallable=no
UsePreviousAppDir=false
PrivilegesRequired=none
UsePreviousUserInfo=false

[Languages]
Name: french; MessagesFile: compiler:Languages\French.isl

[Files]
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: C:\LibreOfficePortable\*; DestDir: {app}; Flags: ignoreversion recursesubdirs createallsubdirs; Languages: french

[Icons]
Name: {group}\{cm:ProgramOnTheWeb,{#MyAppName}}; Filename: {#MyAppURL}

[Registry]
Root: HKCR; Subkey: .odt; ValueType: string; ValueData: opendocument.WriterDocument.1; Flags: uninsdeletekey
Root: HKCR; Subkey: opendocument.WriterDocument.1; ValueType: string; ValueData: Texte OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: opendocument.WriterDocument.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\swriter.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .sxc; ValueType: string; ValueData: soffice.StarCalcDocument.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarCalcDocument.6; ValueType: string; ValueData: Classeur OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarCalcDocument.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\scalc.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .sxw; ValueType: string; ValueData: soffice.StarWriterDocument.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarWriterDocument.6; ValueType: string; ValueData: Document texte OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarWriterDocument.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\swriter.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .sxi; ValueType: string; ValueData: soffice.StarImpressDocument.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarImpressDocument.6; ValueType: string; ValueData: Présentation OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarImpressDocument.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\simpress.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .sxd; ValueType: string; ValueData: soffice.StarDrawDocument.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarDrawDocument.6; ValueType: string; ValueData: Dessin OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarDrawDocument.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\sdraw.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .sxm; ValueType: string; ValueData: soffice.StarMathDocument.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarMathDocument.6; ValueType: string; ValueData: Formule OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarMathDocument.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\smath.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .stw; ValueType: string; ValueData: soffice.StarWriterTemplate.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarWriterTemplate.6; ValueType: string; ValueData: Modèle de texte OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarWriterTemplate.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\swriter.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .sxg; ValueType: string; ValueData: soffice.StarWriterGlobalDocument.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarWriterGlobalDocument.6; ValueType: string; ValueData: Document maître OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarWriterGlobalDocument.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\swriter.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .std; ValueType: string; ValueData: soffice.StarDrawTemplate.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarDrawTemplate.6; ValueType: string; ValueData: Modèle de dessin OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarDrawTemplate.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\sdraw.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .sti; ValueType: string; ValueData: soffice.StarImpressTemplate.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarImpressTemplate.6; ValueType: string; ValueData: Modèle de présentation OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarImpressTemplate.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\simpress.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .stc; ValueType: string; ValueData: soffice.StarCalcTemplate.6; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarCalcTemplate.6; ValueType: string; ValueData: Modèle de classeur OpenOffice.org 1.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarCalcTemplate.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\scalc.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .ott; ValueType: string; ValueData: LibreOffice.WriterTemplate.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.WriterTemplate.1; ValueType: string; ValueData: Modèle de texte OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.WriterTemplate.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\swriter.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .odm; ValueType: string; ValueData: LibreOffice.WriterGlobalDocument.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.WriterGlobalDocument.1; ValueType: string; ValueData: Document maître OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.WriterGlobalDocument.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\swriter.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .oth; ValueType: string; ValueData: LibreOffice.WriterWebTemplate.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.WriterWebTemplate.1; ValueType: string; ValueData: Modèle de document HTML; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.WriterWebTemplate.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\sweb.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .ods; ValueType: string; ValueData: LibreOffice.CalcDocument.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.CalcDocument.1; ValueType: string; ValueData: Classeur OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.CalcDocument.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\scalc.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .ots; ValueType: string; ValueData: LibreOffice.CalcTemplate.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.CalcTemplate.1; ValueType: string; ValueData: Modèle de classeur OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.CalcTemplate.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\scalc.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .odg; ValueType: string; ValueData: LibreOffice.DrawDocument.1; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarDrawDocument.6; ValueType: string; ValueData: Dessin OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: soffice.StarDrawDocument.6\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\sdraw.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .otg; ValueType: string; ValueData: LibreOffice.DrawTemplate.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.DrawTemplate.1; ValueType: string; ValueData: Modèle de dessin OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.DrawTemplate.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\sdraw.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .odp; ValueType: string; ValueData: LibreOffice.ImpressDocument.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.ImpressDocument.1; ValueType: string; ValueData: Présentation OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.ImpressDocument.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\simpress.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .otp; ValueType: string; ValueData: LibreOffice.ImpressTemplate.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.ImpressTemplate.1; ValueType: string; ValueData: Modèle de présentation OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.ImpressTemplate.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\simpress.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .odf; ValueType: string; ValueData: LibreOffice.MathDocument.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.MathDocument.1; ValueType: string; ValueData: Formule OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.MathDocument.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\smath.exe; Flags: uninsdeletekey
Root: HKCR; Subkey: .odb; ValueType: string; ValueData: LibreOffice.DatabaseDocument.1; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.DatabaseDocument.1; ValueType: string; ValueData: Base de données OpenDocument; Flags: uninsdeletekey
Root: HKCR; Subkey: LibreOffice.DatabaseDocument.1\Shell\Open\Command; ValueType: string; ValueData: C:\LibreOffice\App\libreoffice\program\sbase.exe; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\vnd.sun.star.webdav; ValueType: string; ValueName: ; ValueData: URL:OpenOffice WebDAV Protocol
Root: HKLM; SubKey: SOFTWARE\Classes\vnd.sun.star.webdav; ValueType: string; ValueName: URL Protocol; ValueData: 
Root: HKLM; SubKey: SOFTWARE\Classes\vnd.sun.star.webdav\shell\open\command; ValueType: string; ValueData: """C:\LibreOffice\App\libreoffice\program\swriter.exe"" ""%l"""

[INI]
Filename: {commondesktop}\Webdelib-Test.url; Section: InternetShortcut; Key: URL; String: http://delibtest.cg23.fr/
Filename: {commondesktop}\Webdelib-Prod.url; Section: InternetShortcut; Key: URL; String: http://delib.cg23.fr/
[UninstallDelete]
Type: files; Name: {commondesktop}\Webdelib-Test.url
Type: files; Name: {commondesktop}\Webdelib-Prod.url
