summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-21 12:54:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-21 12:54:59 +0000
commit2fdfbe85d38ee2f83e86c67f94af2e7e7efb3b9f (patch)
tree4a6efe090a2c71db912a4372a568ffc74f681034
parent823f071fd1beb9147b3c18938c8a99b4165c8043 (diff)
add service install and remove calls to installer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10198 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--win/inspircd-noextras.nsi2
-rw-r--r--win/inspircd.nsi2
2 files changed, 4 insertions, 0 deletions
diff --git a/win/inspircd-noextras.nsi b/win/inspircd-noextras.nsi
index 0785c9d40..aeca798e9 100644
--- a/win/inspircd-noextras.nsi
+++ b/win/inspircd-noextras.nsi
@@ -145,6 +145,7 @@ Section "Binary Executable" SEC01
SetOutPath "$INSTDIR\bin"
SetOverwrite ifnewer
File "..\bin\${BUILD}\bin\inspircd.exe"
+ ExecWait '"$INSTDIR\bin\inspircd.exe" --installservice'
SectionEnd
Section "Config Files" SEC02
@@ -214,6 +215,7 @@ Function un.onInit
FunctionEnd
Section Uninstall
+ ExecWait '"$INSTDIR\bin\inspircd.exe" --removeservice'
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\modules\m_*.so"
diff --git a/win/inspircd.nsi b/win/inspircd.nsi
index 764658209..f21a8dd12 100644
--- a/win/inspircd.nsi
+++ b/win/inspircd.nsi
@@ -145,6 +145,7 @@ Section "Binary Executable" SEC01
SetOutPath "$INSTDIR\bin"
SetOverwrite ifnewer
File "..\bin\${BUILD}\bin\inspircd.exe"
+ ExecWait '"$INSTDIR\bin\inspircd.exe" --installservice'
SectionEnd
Section "Config Files" SEC02
@@ -244,6 +245,7 @@ Function un.onInit
FunctionEnd
Section Uninstall
+ ExecWait '"$INSTDIR\bin\inspircd.exe" --removeservice'
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\modules\m_*.so"