Commit fe4cb33c authored by Jondy Zhao's avatar Jondy Zhao

Remove cygwin services when uninstall slapos node.

parent 2611b320
#! /bin/bash
#
# When uninstall slapos, it will be called by uninstaller.
#
# /bin/bash/ --login -i pre-uninstall.sh
#
# It will do:
#
# 1. Remove service cygserver
#
# 2. Remove service syslog-ng
#
if [[ ! "$(whoami)" == "Administrator" ]] ; then
exit 1
fi
cygrunsrv.exe --remove syslog-ng
cygrunsrv.exe --remove cygserver
exit 0
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
[Setup] [Setup]
AppName=SlapOS AppName=SlapOS
AppVersion=0.158 AppVersion=0.158
AppVerName=SlapOS Windows 0.158.2 AppVerName=SlapOS Windows 0.158.3
DefaultDirName=C:\slapos DefaultDirName=C:\slapos
DefaultGroupName=SlapOS DefaultGroupName=SlapOS
OutputBaseFilename=slapos-0.158.2-windows-x86-all-in-one OutputBaseFilename=slapos-0.158.3-windows-x86-all-in-one
OutputDir=D:\slapos\publish\Output OutputDir=D:\slapos\publish\Output
SourceDir=D:\slapos SourceDir=D:\slapos
Uninstallable=yes Uninstallable=yes
...@@ -67,7 +67,7 @@ Source: "opt\git\slapos.package\windows\scripts\post-install.sh"; DestDir: "{app ...@@ -67,7 +67,7 @@ Source: "opt\git\slapos.package\windows\scripts\post-install.sh"; DestDir: "{app
Source: "opt\git\slapos.package\windows\scripts\build-slapos.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts"; Source: "opt\git\slapos.package\windows\scripts\build-slapos.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "opt\git\slapos.package\windows\scripts\slapos-node-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts"; Source: "opt\git\slapos.package\windows\scripts\slapos-node-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "opt\git\slapos.package\windows\scripts\slapos-client-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts"; Source: "opt\git\slapos.package\windows\scripts\slapos-client-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "opt\git\slapos.package\windows\scripts\pre-uninstall.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "src\docs\using-slapos-in-windows.html"; DestDir: "{app}"; DestName: "user-guide.html"; Source: "src\docs\using-slapos-in-windows.html"; DestDir: "{app}"; DestName: "user-guide.html";
Source: "src\docs\README.cygwin"; DestDir: "{app}"; DestName: "readme.txt"; Source: "src\docs\README.cygwin"; DestDir: "{app}"; DestName: "readme.txt";
...@@ -90,6 +90,9 @@ Filename: "{app}\setup-cygwin.bat"; Parameters: """{app}"""; StatusMsg: "Install ...@@ -90,6 +90,9 @@ Filename: "{app}\setup-cygwin.bat"; Parameters: """{app}"""; StatusMsg: "Install
Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/post-install.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Configure Cygwin"; StatusMsg: "Configure Cygwin..."; Flags: skipifdoesntexist runhidden; Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/post-install.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Configure Cygwin"; StatusMsg: "Configure Cygwin..."; Flags: skipifdoesntexist runhidden;
Filename: "{app}\cygwin\autorebase.bat"; WorkingDir: "{app}\cygwin"; Flags: skipifdoesntexist runhidden; Filename: "{app}\cygwin\autorebase.bat"; WorkingDir: "{app}\cygwin"; Flags: skipifdoesntexist runhidden;
[UninstallRun]
Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/pre-uninstall.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Remove Service of Cygwin"; Flags: skipifdoesntexist runhidden;
[UninstallDelete] [UninstallDelete]
Type: filesandordirs; Name: "{app}\cygwin" ; Type: filesandordirs; Name: "{app}\cygwin" ;
Type: files; Name: "*.pyc"; Type: files; Name: "*.pyc";
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
[Setup] [Setup]
AppName=SlapOS AppName=SlapOS
AppVersion=0.158 AppVersion=0.158
AppVerName=SlapOS Windows 0.158.2 AppVerName=SlapOS Windows 0.158.3
DefaultDirName=C:\slapos DefaultDirName=C:\slapos
DefaultGroupName=SlapOS DefaultGroupName=SlapOS
OutputDir=D:\slapos\publish\Output OutputDir=D:\slapos\publish\Output
OutputBaseFilename=slapos-0.158.2-windows-x86 OutputBaseFilename=slapos-0.158.3-windows-x86
SourceDir=D:\slapos SourceDir=D:\slapos
Uninstallable=yes Uninstallable=yes
...@@ -61,6 +61,7 @@ Source: "opt\git\slapos.package\windows\scripts\post-install.sh"; DestDir: "{app ...@@ -61,6 +61,7 @@ Source: "opt\git\slapos.package\windows\scripts\post-install.sh"; DestDir: "{app
Source: "opt\git\slapos.package\windows\scripts\build-slapos.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts"; Source: "opt\git\slapos.package\windows\scripts\build-slapos.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "opt\git\slapos.package\windows\scripts\slapos-node-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts"; Source: "opt\git\slapos.package\windows\scripts\slapos-node-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "opt\git\slapos.package\windows\scripts\slapos-client-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts"; Source: "opt\git\slapos.package\windows\scripts\slapos-client-config.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "opt\git\slapos.package\windows\scripts\pre-uninstall.sh"; DestDir: "{app}\cygwin\etc\slapos\scripts";
Source: "src\docs\using-slapos-in-windows.html"; DestDir: "{app}"; DestName: "user-guide.html"; Source: "src\docs\using-slapos-in-windows.html"; DestDir: "{app}"; DestName: "user-guide.html";
Source: "src\docs\README.cygwin"; DestDir: "{app}"; DestName: "readme.txt"; Source: "src\docs\README.cygwin"; DestDir: "{app}"; DestName: "readme.txt";
...@@ -84,6 +85,9 @@ Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scrip ...@@ -84,6 +85,9 @@ Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scrip
Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/build-slapos.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Builout process"; StatusMsg: "Building SlapOS..."; Flags: skipifdoesntexist; Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/build-slapos.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Builout process"; StatusMsg: "Building SlapOS..."; Flags: skipifdoesntexist;
Filename: "{app}\cygwin\autorebase.bat"; WorkingDir: "{app}\cygwin"; Flags: skipifdoesntexist runhidden; Filename: "{app}\cygwin\autorebase.bat"; WorkingDir: "{app}\cygwin"; Flags: skipifdoesntexist runhidden;
[UninstallRun]
Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/pre-uninstall.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Remove Service of Cygwin"; Flags: skipifdoesntexist runhidden;
[UninstallDelete] [UninstallDelete]
Type: filesandordirs; Name: "{app}\cygwin" ; Type: filesandordirs; Name: "{app}\cygwin" ;
Type: files; Name: "*.pyc"; Type: files; Name: "*.pyc";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment