summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-16 18:04:08 +0400
committerAnton <anton@picapica>2019-03-16 18:04:08 +0400
commitc098d79975ca01304ce77bc5f102821418ac5316 (patch)
tree3bb482fbca45ab788087759aa251aa6f3fcbe414
parent83788d2ee7557ce8b389f814fe3eaf24a5b68a02 (diff)
downloadpica-pica-c098d79975ca01304ce77bc5f102821418ac5316.tar.gz
pica-pica-c098d79975ca01304ce77bc5f102821418ac5316.zip
run after install; install pica-node service with LocalService credentials
-rw-r--r--windows/pica-node.nsi3
1 files changed, 2 insertions, 1 deletions
diff --git a/windows/pica-node.nsi b/windows/pica-node.nsi
index 1466af7..be6192b 100644
--- a/windows/pica-node.nsi
+++ b/windows/pica-node.nsi
@@ -46,7 +46,8 @@ Section "" ;No components page, name is not important
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Node" "NoRepair" 1
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Node" "HelpLink" "https://picapica.im"
- Exec 'sc create PicaNodeService binPath= $\"$INSTDIR\pica-node.exe$\" start= auto'
+ Exec 'sc create PicaNodeService binPath= $\"$INSTDIR\pica-node.exe$\" start= auto obj= $\"NT AUTHORITY\LocalService$\"'
+ Exec 'sc start PicaNodeService'
SectionEnd ; end the section