Temporarily disable cleanup

This commit is contained in:
Sander Declerck 2026-01-19 15:58:11 +01:00
parent eb00fe6f3d
commit 4ebbbca432
No known key found for this signature in database

View file

@ -31,30 +31,29 @@ export async function installOnWindows() {
ui.writeVerbose(`Destination: ${msiPath}`);
await downloadFile(downloadUrl, msiPath);
try {
ui.emptyLine();
await stopServiceIfRunning();
await uninstallIfInstalled();
// try {
ui.emptyLine();
await stopServiceIfRunning();
await uninstallIfInstalled();
// Wait a moment for uninstall to complete
await new Promise((resolve) => setTimeout(resolve, 2000));
// Wait a moment for uninstall to complete
await new Promise((resolve) => setTimeout(resolve, 2000));
ui.writeInformation("⚙️ Installing SafeChain Agent...");
await runMsiInstaller(msiPath);
ui.writeInformation("⚙️ Installing SafeChain Agent...");
await runMsiInstaller(msiPath);
ui.emptyLine();
ui.writeInformation("🚀 Starting SafeChain Agent service...");
await startService();
ui.emptyLine();
ui.writeInformation("🚀 Starting SafeChain Agent service...");
await startService();
ui.emptyLine();
ui.writeInformation(
"✅ SafeChain Agent installed and started successfully!",
);
ui.emptyLine();
} finally {
ui.writeVerbose(`Cleaning up temporary file: ${msiPath}`);
cleanup(msiPath);
}
ui.emptyLine();
ui.writeInformation("✅ SafeChain Agent installed and started successfully!");
ui.emptyLine();
// }
// finally {
// ui.writeVerbose(`Cleaning up temporary file: ${msiPath}`);
// cleanup(msiPath);
// }
}
async function isRunningAsAdmin() {