all task completed message
This commit is contained in:
5
samy.js
5
samy.js
@@ -29,7 +29,7 @@ function logProgress(label, isSuccess) {
|
|||||||
if (completedTasks === totalTasks) {
|
if (completedTasks === totalTasks) {
|
||||||
const finalMsg = document.createElement("div");
|
const finalMsg = document.createElement("div");
|
||||||
finalMsg.style.marginTop = "10px";
|
finalMsg.style.marginTop = "10px";
|
||||||
finalMsg.innerHTML = `<strong> All tasks complete (${completedTasks}/${totalTasks})</strong>`;
|
finalMsg.innerHTML = `<strong> All tasks completed (${completedTasks}/${totalTasks})</strong>`;
|
||||||
statusBox?.appendChild(finalMsg);
|
statusBox?.appendChild(finalMsg);
|
||||||
|
|
||||||
document.title = ` ScriptMonkey - Complete (${completedTasks}/${totalTasks})`;
|
document.title = ` ScriptMonkey - Complete (${completedTasks}/${totalTasks})`;
|
||||||
@@ -333,6 +333,9 @@ async function triggerInstall() {
|
|||||||
console.error("triggerInstall fatal error:", e);
|
console.error("triggerInstall fatal error:", e);
|
||||||
} finally {
|
} finally {
|
||||||
runBtn.disabled = false;
|
runBtn.disabled = false;
|
||||||
|
if (totalTasks > 0) {
|
||||||
|
console.info(`[Info] All tasks completed (${completedTasks}/${totalTasks})`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
8
samy.ps1
8
samy.ps1
@@ -474,7 +474,7 @@ $ConfirmPreference = 'None'
|
|||||||
# After module install, repair Event Log binding for legacy systems
|
# After module install, repair Event Log binding for legacy systems
|
||||||
Repair-SVSMspEventLogBinding -EventSource "SVSMSP_Module" -TargetLog "SVSMSP Events"
|
Repair-SVSMspEventLogBinding -EventSource "SVSMSP_Module" -TargetLog "SVSMSP Events"
|
||||||
|
|
||||||
Write-LogHybrid "Toolkit installation complete." "Success" "SVSModule" -LogToEvent
|
Write-LogHybrid "Toolkit installation completed." "Success" "SVSModule" -LogToEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1475,8 +1475,8 @@ function Invoke-CleanupSVSMSP {
|
|||||||
# - Delete HKLM:\Software\SVS\Deployment (via Remove-SVSDeploymentRegKey)
|
# - Delete HKLM:\Software\SVS\Deployment (via Remove-SVSDeploymentRegKey)
|
||||||
Install-SVSMSP -Cleanup
|
Install-SVSMSP -Cleanup
|
||||||
|
|
||||||
Write-LogHybrid "SVSMSP toolkit cleanup complete (module, repo, registry)." Success OffBoard -LogToEvent
|
Write-LogHybrid "SVSMSP toolkit cleanup completed (module, repo, registry)." Success OffBoard -LogToEvent
|
||||||
Send-Text $Context "SVSMSP toolkit cleanup complete."
|
Send-Text $Context "SVSMSP toolkit cleanup completed."
|
||||||
} else {
|
} else {
|
||||||
throw "Install-SVSMSP function not found in current session."
|
throw "Install-SVSMSP function not found in current session."
|
||||||
}
|
}
|
||||||
@@ -1845,7 +1845,7 @@ function Install-DattoRMM {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-LogHybrid "Headless offboarding complete" Success OffBoard -LogToEvent
|
Write-LogHybrid "Headless offboarding completed" Success OffBoard -LogToEvent
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user