Skip to content

Commit 6b7d60f

Browse files
add daemon installer and uninstaller scripts
1 parent 4db860b commit 6b7d60f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

resources/installDaemon.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$binPath = (Get-Item .).FullName + "\microstack.Daemon.exe"
2+
$serviceName = "Microstack Background Service"
3+
sc.exe create $serviceName binPath=$binPath start=auto
4+
sc.exe start $serviceName
5+
Write-Host -NoNewLine 'Press any key to continue...';
6+
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');

resources/uninstallDaemon.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sc.exe delete "Microstack Background Service"

0 commit comments

Comments
 (0)