107 lines
2.9 KiB
Markdown
107 lines
2.9 KiB
Markdown
# Feuille de route — Installateur studioE5 Agent
|
||
|
||
## Objectif
|
||
|
||
Fournir un **installateur professionnel Windows** pour studioE5 Agent, guidé pas à pas, qui gère les prérequis (WSL2 / Podman) et propose une désinstallation complète.
|
||
|
||
## Architecture choisie
|
||
|
||
- **Wizard C# Windows Forms (.NET 8)** : `setup-wizard/`
|
||
- Détecte les prérequis.
|
||
- Installe WSL2 si besoin (avec reprise après redémarrage via `RunOnce`).
|
||
- Installe Podman depuis le MSI officiel.
|
||
- Initialise et démarre la machine Podman.
|
||
- Lance le package Inno Setup de studioE5 Agent.
|
||
- Mode désinstallation via `/uninstall`.
|
||
- **Package agent (Inno Setup)** : `studioE5-agent.iss`
|
||
- Installe `studioE5-agent.exe` + binaires Tailscale.
|
||
- Crée les raccourcis.
|
||
- Gère la désinstallation.
|
||
|
||
## État actuel
|
||
|
||
### ✅ Réalisé
|
||
|
||
- Wizard C# avec 7 étapes guidées.
|
||
- Détection des prérequis : Windows, RAM, disque, WSL2, Podman.
|
||
- Installation WSL2 avec redémarrage + reprise automatique.
|
||
- Installation Podman via MSI bundlé.
|
||
- Configuration Podman (`machine init` + `machine start`).
|
||
- Lancement du package Inno Setup agent.
|
||
- Mode désinstallation complet.
|
||
- Script Inno Setup de base pour l’agent.
|
||
|
||
### 🔄 En cours / À tester
|
||
|
||
- Compilation et test du wizard sur Windows.
|
||
- Packaging final (wizard + MSI Podman + setup agent) en un seul dossier distribuable.
|
||
|
||
### ⏳ À venir
|
||
|
||
- Signature de l’exécutable pour éviter les alertes SmartScreen.
|
||
- Support macOS et Linux.
|
||
- Installateur silencieux possible pour déploiement GPO.
|
||
|
||
## Build du wizard
|
||
|
||
### Prérequis
|
||
|
||
- Windows 10/11
|
||
- .NET 8 SDK
|
||
- Inno Setup 6 (pour générer `studioE5-agent-setup.exe`)
|
||
|
||
### Fichiers à placer
|
||
|
||
Dans `setup-wizard/Resources/` :
|
||
|
||
```text
|
||
podman-installer-windows-amd64.msi
|
||
studioE5-agent-setup.exe
|
||
```
|
||
|
||
### Commande
|
||
|
||
```powershell
|
||
cd setup-wizard
|
||
dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true
|
||
```
|
||
|
||
### Sortie
|
||
|
||
```text
|
||
setup-wizard\bin\Release\net8.0-windows\win-x64\publish\StudioE5-SetupWizard.exe
|
||
```
|
||
|
||
## Build du package agent (Inno Setup)
|
||
|
||
Structure attendue :
|
||
|
||
```text
|
||
agent/
|
||
├── studioE5-agent.exe
|
||
├── tailscale-bin/
|
||
│ └── windows/
|
||
│ ├── tailscale.exe
|
||
│ ├── tailscaled.exe
|
||
│ └── wintun.dll
|
||
└── installer/
|
||
└── studioE5-agent.iss
|
||
```
|
||
|
||
Ouvrir `studioE5-agent.iss` avec Inno Setup Compiler et compiler (`Ctrl+F9`).
|
||
|
||
Le fichier généré se trouve dans `installer-output/`.
|
||
|
||
## Notes importantes
|
||
|
||
- Le wizard doit être exécuté **en administrateur**.
|
||
- L’installation de WSL2 nécessite un **redémarrage** de l’ordinateur.
|
||
- Le MSI Podman officiel pour Windows est `podman-installer-windows-amd64.msi`.
|
||
- Pour la désinstallation, le MSI Podman doit être présent dans `Resources/`.
|
||
|
||
## Liens utiles
|
||
|
||
- Releases Podman : <https://github.com/containers/podman/releases>
|
||
- Inno Setup : <https://jrsoftware.org/isdl.php>
|
||
- .NET 8 SDK : <https://dotnet.microsoft.com/download/dotnet/8.0>
|