mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Temporarily disable cleanup
This commit is contained in:
parent
eb00fe6f3d
commit
4ebbbca432
1 changed files with 19 additions and 20 deletions
|
|
@ -31,30 +31,29 @@ 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();
|
||||||
|
|
||||||
// Wait a moment for uninstall to complete
|
// Wait a moment for uninstall to complete
|
||||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||||
|
|
||||||
ui.writeInformation("⚙️ Installing SafeChain Agent...");
|
ui.writeInformation("⚙️ Installing SafeChain Agent...");
|
||||||
await runMsiInstaller(msiPath);
|
await runMsiInstaller(msiPath);
|
||||||
|
|
||||||
ui.emptyLine();
|
ui.emptyLine();
|
||||||
ui.writeInformation("🚀 Starting SafeChain Agent service...");
|
ui.writeInformation("🚀 Starting SafeChain Agent service...");
|
||||||
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 {
|
||||||
} finally {
|
// ui.writeVerbose(`Cleaning up temporary file: ${msiPath}`);
|
||||||
ui.writeVerbose(`Cleaning up temporary file: ${msiPath}`);
|
// cleanup(msiPath);
|
||||||
cleanup(msiPath);
|
// }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function isRunningAsAdmin() {
|
async function isRunningAsAdmin() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue