Files
edubox/agent/installer/setup-wizard/README.md
T

84 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# StudioE5 Setup Wizard
Assistant dinstallation graphique Windows pour studioE5 Agent.
## Rôle
Ce wizard guide lutilisateur pas à pas pour :
1. Vérifier les prérequis (RAM, disque, Windows, environnement virtuel, Podman).
2. Installer l**environnement virtuel** (WSL2) si nécessaire, avec reprise après redémarrage.
3. Installer **Podman** depuis le MSI bundlé.
4. Initialiser et démarrer la **machine Podman**.
5. Lancer le package **Inno Setup** de studioE5 Agent.
Il propose aussi un mode **désinstallation** complet (`/uninstall`).
## Prérequis de build
- Windows 10/11
- [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)
- Visual Studio 2022 ou Visual Studio Code (optionnel)
## Structure
```text
setup-wizard/
├── SetupWizard.csproj
├── Program.cs
├── MainForm.cs
├── InstallerState.cs
├── PrerequisiteChecker.cs
└── Resources/
├── podman-installer-windows-amd64.msi # MSI officiel Podman pour Windows
└── studioE5-agent-setup.exe # Package Inno Setup de l'agent
```
## Build
Ouvrir un terminal PowerShell dans ce dossier et exécuter :
```powershell
dotnet build -c Release
```
Pour publier un exécutable autonome (pas besoin du runtime .NET sur le poste cible) :
```powershell
dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true
```
Lexécutable se trouve dans :
```text
bin\Release\net8.0-windows\win-x64\publish\StudioE5-SetupWizard.exe
```
## Préparation du package
1. Télécharger le MSI Podman Windows :
<https://github.com/containers/podman/releases>
2. Le renommer en `podman-installer-windows-amd64.msi` et le placer dans `Resources/`.
3. Générer le package Inno Setup de lagent (`studioE5-agent-setup.exe`) et le placer dans `Resources/`.
4. Builder et publier le wizard.
## Lancement
### Mode installation
```powershell
.\StudioE5-SetupWizard.exe
```
### Mode désinstallation
```powershell
.\StudioE5-SetupWizard.exe /uninstall
```
## Notes
- Le wizard doit être exécuté **en administrateur**.
- Linstallation de WSL2 nécessite un **redémarrage** de lordinateur. Le wizard senregistre dans `RunOnce` pour se relancer automatiquement.
- Le MSI Podman doit correspondre à larchitecture `x64`.