« Inno Setup » : différence entre les versions

Aller à la navigation Aller à la recherche
 
(3 versions intermédiaires par le même utilisateur non affichées)
Ligne 10 : Ligne 10 :
* https://www.jcz.fr/innosetup/
* https://www.jcz.fr/innosetup/


== Script ==
== Exemple 1, création d'un raccourci vers URL ==
Les actions suivantes sont réalisées :
* création d'un raccourci ;
* sur le bureau public ;
* avec personnalisation de l'icone ;
* ouverture du lien avec le navigateur [[Microsoft Edge]] ;
* navigation en mode privé.
 
=== Prérequis ===
Création de l'écosystème suivant :
* dossier <code>C:\Support\PHPForm\</code>
* information avant installation, fichier : <code>avantinstall.txt</code>
* icone, fichier : <code>PHPForm.ico</code> ;
* image, taille standard (h x l : 164 x 314 pixels, couleurs indexées 256 couleurs), pour l'interface de l'installeur : <code>WizModernImage-IS.bmp</code>
* image, taille réduite (h x l : 55 x 55 pixels, couleurs indexées 256 couleurs), pour l'interface de l'installeur : <code>WizModernSmallImage-IS.bmp</code>
 
==== Illustration ====
 


=== Création d'un raccourci vers URL ===
=== Création d'un raccourci vers URL ===
Ligne 23 : Ligne 40 :
; - 1.0 (21/10/2025) : création du script
; - 1.0 (21/10/2025) : création du script
;
;
; Avec le dossier de travail "..\PHPForm\" contenant :
; * le script Inno Setup "PHPForm-010.iss" ;
; * le fichier d'icone "bing.ico" ;
; * le fichier d'installation y sera créé automatiquement, sous la forme :
; ** "PHPForm-numversion-setup.exe"
;
; Script generated by the Inno Setup Script Wizard.
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
Ligne 31 : Ligne 54 :
#define MyAppURL      "http://phpage.fr/"
#define MyAppURL      "http://phpage.fr/"
#define MyAppURLTarget "http://kono.phpage.fr"
#define MyAppURLTarget "http://kono.phpage.fr"
#define MyFavicon      "bing.ico"
#define MyFavicon      "PHPForm.ico"


[Setup]
[Setup]
Ligne 42 : Ligne 65 :
AppSupportURL          = {#MyAppURL}
AppSupportURL          = {#MyAppURL}
AppUpdatesURL          = {#MyAppURL}
AppUpdatesURL          = {#MyAppURL}
DefaultDirName          = {autopf}\{#MyAppName}
DefaultDirName          = {autopf}\{#MyAppName}
DefaultGroupName        = {#MyAppName}
DefaultGroupName        = {#MyAppName}
DisableDirPage          = yes
DisableDirPage          = yes
DisableProgramGroupPage = yes
DisableProgramGroupPage = yes
DisableWelcomePage      = no
DisableFinishedPage    = no
InfoBeforeFile          = avantinstall.txt
; InfoAfterFile=<chemin du fichier texte>
; Images pour les fenêtres de l installeur
WizardImageFile        = WizModernImage-IS.bmp
WizardSmallImageFile    = WizModernSmallImage-IS.bmp
ExtraDiskSpaceRequired  = 1
OutputDir              = .\
OutputDir              = .\
OutputBaseFilename      = {#MyAppName}-{#MyAppVersion}-setup
OutputBaseFilename      = {#MyAppName}-{#MyAppVersion}-setup
SolidCompression        = yes
SolidCompression        = yes
WizardStyle            = modern
WizardStyle            = modern
Ligne 59 : Ligne 96 :
[Icons]
[Icons]
Name: "{commondesktop}\{#MyAppName}"; Filename: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"; Parameters: "-inprivate {#MyAppURLTarget}"; IconFilename: "{app}\{#MyFavicon}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"; Parameters: "-inprivate {#MyAppURLTarget}"; IconFilename: "{app}\{#MyFavicon}"
</source>
== Base de registre ==
Une fois l'application installée, la base de registre indique :
<source>
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{6A1C9E11-A2A3-4C84-8B8E-C05F06B89EF3}_is1]
"Inno Setup: Setup Version"="6.5.4"
"Inno Setup: App Path"="C:\\Program Files (x86)\\PHPForm"
"InstallLocation"="C:\\Program Files (x86)\\PHPForm\\"
"Inno Setup: Icon Group"="PHPForm"
"Inno Setup: User"="admin"
"Inno Setup: Language"="french"
"DisplayName"="PHPForm version 1.0"
"UninstallString"="\"C:\\Program Files (x86)\\PHPForm\\unins000.exe\""
"QuietUninstallString"="\"C:\\Program Files (x86)\\PHPForm\\unins000.exe\" /SILENT"
"DisplayVersion"="1.0"
"Publisher"="PHP"
"URLInfoAbout"="http://phpage.fr/"
"HelpLink"="http://phpage.fr/"
"URLUpdateInfo"="http://phpage.fr/"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"InstallDate"="20251022"
"MajorVersion"=dword:00000001
"MinorVersion"=dword:00000000
"VersionMajor"=dword:00000001
"VersionMinor"=dword:00000000
"EstimatedSize"=dword:00000e86
</source>
</source>



Dernière version du 22 octobre 2025 à 08:49

Inno Setup

Généralité

Ressource

Site JCZ :

Exemple 1, création d'un raccourci vers URL

Les actions suivantes sont réalisées :

  • création d'un raccourci ;
  • sur le bureau public ;
  • avec personnalisation de l'icone ;
  • ouverture du lien avec le navigateur Microsoft Edge ;
  • navigation en mode privé.

Prérequis

Création de l'écosystème suivant :

  • dossier C:\Support\PHPForm\
  • information avant installation, fichier : avantinstall.txt
  • icone, fichier : PHPForm.ico ;
  • image, taille standard (h x l : 164 x 314 pixels, couleurs indexées 256 couleurs), pour l'interface de l'installeur : WizModernImage-IS.bmp
  • image, taille réduite (h x l : 55 x 55 pixels, couleurs indexées 256 couleurs), pour l'interface de l'installeur : WizModernSmallImage-IS.bmp

Illustration

Création d'un raccourci vers URL

; Nom           : INNAPP001
; Description   : installateur pour la création d'un icone sur le bureau pour lancer une URL en mode privé avec le navigateur Microsoft Edge
; Usage         : exercice avec Inno Setup
; Particularité : néant
; Auteur        : fylip22
; Version       : 1.0
; Révisions     :
; 	- 1.0 (21/10/2025) : création du script
;
; Avec le dossier de travail "..\PHPForm\" contenant :
; * le script Inno Setup "PHPForm-010.iss" ;
; * le fichier d'icone "bing.ico" ;
; * le fichier d'installation y sera créé automatiquement, sous la forme : 
; ** "PHPForm-numversion-setup.exe"
; 
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName      "PHPForm"
#define MyAppVersion   "1.0"
#define MyAppPublisher "PHP"
#define MyAppURL       "http://phpage.fr/"
#define MyAppURLTarget "http://kono.phpage.fr"
#define MyFavicon      "PHPForm.ico"

[Setup]
AppId                   = {{6A1C9E11-A2A3-4C84-8B8E-C05F06B89EF3}
AppName                 = {#MyAppName}
AppVersion              = {#MyAppVersion}
;AppVerName              = {#MyAppName} {#MyAppVersion}
AppPublisher            = {#MyAppPublisher}
AppPublisherURL         = {#MyAppURL}
AppSupportURL           = {#MyAppURL}
AppUpdatesURL           = {#MyAppURL}

DefaultDirName          = {autopf}\{#MyAppName}
DefaultGroupName        = {#MyAppName}

DisableDirPage          = yes
DisableProgramGroupPage = yes
DisableWelcomePage      = no
DisableFinishedPage     = no

InfoBeforeFile          = avantinstall.txt
; InfoAfterFile=<chemin du fichier texte>

; Images pour les fenêtres de l installeur
WizardImageFile         = WizModernImage-IS.bmp
WizardSmallImageFile    = WizModernSmallImage-IS.bmp
ExtraDiskSpaceRequired  = 1

OutputDir               = .\
OutputBaseFilename      = {#MyAppName}-{#MyAppVersion}-setup

SolidCompression        = yes
WizardStyle             = modern

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

[Files]
Source: ".\{#MyFavicon}"; DestDir: "{app}"; Flags: ignoreversion

[Icons]
Name: "{commondesktop}\{#MyAppName}"; Filename: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"; Parameters: "-inprivate {#MyAppURLTarget}"; IconFilename: "{app}\{#MyFavicon}"

Base de registre

Une fois l'application installée, la base de registre indique :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{6A1C9E11-A2A3-4C84-8B8E-C05F06B89EF3}_is1]
"Inno Setup: Setup Version"="6.5.4"
"Inno Setup: App Path"="C:\\Program Files (x86)\\PHPForm"
"InstallLocation"="C:\\Program Files (x86)\\PHPForm\\"
"Inno Setup: Icon Group"="PHPForm"
"Inno Setup: User"="admin"
"Inno Setup: Language"="french"
"DisplayName"="PHPForm version 1.0"
"UninstallString"="\"C:\\Program Files (x86)\\PHPForm\\unins000.exe\""
"QuietUninstallString"="\"C:\\Program Files (x86)\\PHPForm\\unins000.exe\" /SILENT"
"DisplayVersion"="1.0"
"Publisher"="PHP"
"URLInfoAbout"="http://phpage.fr/"
"HelpLink"="http://phpage.fr/"
"URLUpdateInfo"="http://phpage.fr/"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"InstallDate"="20251022"
"MajorVersion"=dword:00000001
"MinorVersion"=dword:00000000
"VersionMajor"=dword:00000001
"VersionMinor"=dword:00000000
"EstimatedSize"=dword:00000e86

Voir aussi

  •