installer: corrections wizard C# (System.Management, AppContext.BaseDirectory), fix script Inno Setup GetDiskFreeSpaceEx, ajout SUIVI_INSTALLER
This commit is contained in:
@@ -412,9 +412,9 @@ public partial class MainForm : Form
|
||||
|
||||
try
|
||||
{
|
||||
var msiPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? ".", "Resources", "podman-setup.msi");
|
||||
var msiPath = Path.Combine(AppContext.BaseDirectory, "Resources", "podman-installer-windows-amd64.msi");
|
||||
if (!File.Exists(msiPath))
|
||||
throw new FileNotFoundException("Le fichier podman-setup.msi est introuvable. Vérifiez qu'il est bien inclus dans le package.");
|
||||
throw new FileNotFoundException("Le fichier podman-installer-windows-amd64.msi est introuvable. Vérifiez qu'il est bien inclus dans le package.");
|
||||
|
||||
RunCommand("msiexec.exe", $"/i \"{msiPath}\" /qn /norestart", "Installation de Podman en cours...");
|
||||
_state.PodmanInstalled = true;
|
||||
@@ -506,7 +506,7 @@ public partial class MainForm : Form
|
||||
{
|
||||
try
|
||||
{
|
||||
var setupPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? ".", "Resources", "studioE5-agent-setup.exe");
|
||||
var setupPath = Path.Combine(AppContext.BaseDirectory, "Resources", "studioE5-agent-setup.exe");
|
||||
if (!File.Exists(setupPath))
|
||||
throw new FileNotFoundException("Le fichier studioE5-agent-setup.exe est introuvable. Vérifiez qu'il est bien inclus dans le package.");
|
||||
|
||||
@@ -600,7 +600,7 @@ public partial class MainForm : Form
|
||||
}
|
||||
|
||||
// 4. Uninstall Podman
|
||||
var podmanMsiPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? ".", "Resources", "podman-setup.msi");
|
||||
var podmanMsiPath = Path.Combine(AppContext.BaseDirectory, "Resources", "podman-installer-windows-amd64.msi");
|
||||
if (File.Exists(podmanMsiPath))
|
||||
{
|
||||
RunCommand("msiexec.exe", $"/x \"{podmanMsiPath}\" /qn /norestart", "Désinstallation de Podman...");
|
||||
|
||||
Reference in New Issue
Block a user