Temporarily disable cleanup

This commit is contained in:
Sander Declerck 2026-01-19 15:58:11 +01:00
parent 3c40c60a3e
commit 38888813cf
No known key found for this signature in database

View file

@ -31,7 +31,7 @@ export async function installOnWindows() {
ui.writeVerbose(`Destination: ${msiPath}`); ui.writeVerbose(`Destination: ${msiPath}`);
await downloadFile(downloadUrl, msiPath); await downloadFile(downloadUrl, msiPath);
try { // try {
ui.emptyLine(); ui.emptyLine();
await stopServiceIfRunning(); await stopServiceIfRunning();
await uninstallIfInstalled(); await uninstallIfInstalled();
@ -47,14 +47,13 @@ export async function installOnWindows() {
await startService(); await startService();
ui.emptyLine(); ui.emptyLine();
ui.writeInformation( ui.writeInformation("✅ SafeChain Agent installed and started successfully!");
"✅ SafeChain Agent installed and started successfully!",
);
ui.emptyLine(); ui.emptyLine();
} finally { // }
ui.writeVerbose(`Cleaning up temporary file: ${msiPath}`); // finally {
cleanup(msiPath); // ui.writeVerbose(`Cleaning up temporary file: ${msiPath}`);
} // cleanup(msiPath);
// }
} }
async function isRunningAsAdmin() { async function isRunningAsAdmin() {