Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
60de3530
authored
Mar 11, 2015
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Installation and uninstall logs are added
parent
cf9dd786
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
src/nsi/installer/install.cmd
+0
-0
src/nsi/uninstaller/uninstall.cmd
+26
-20
No files found.
src/nsi/installer/install.cmd
View file @
60de3530
This diff is collapsed.
Click to expand it.
src/nsi/uninstaller/uninstall.cmd
View file @
60de3530
@echo off
@echo off
cls
cls
setLocal EnableDelayedExpansion
setLocal EnableDelayedExpansion
rem Set whether we want output info on screen or not
rem Set where this file will install the rest of the files
IF NOT "%1"=="" (
IF NOT "%1"=="" (
SET "output_on_screen=%1"
SET "location=%1"
SET install_location=!location:"=!
) else (
SET "install_location=%APPDATA%\CIRCLE"
)
rem Set whether we want output info on screen or not
IF NOT "%2"=="" (
SET "output_on_screen=%2"
) else (
) else (
SET "output_on_screen=
Fals
e"
SET "output_on_screen=
Tru
e"
)
)
rem Starting the uninstall script
rem Starting the uninstall script
IF NOT "!output_on_screen!"=="False" (
IF NOT "!output_on_screen!"=="False" (
@echo Starting CIRCLE Client uninstall script
@echo Starting CIRCLE Client uninstall script
>CON
@echo.
@echo.
>CON
)
)
@echo Starting CIRCLE Client uninstall script
@echo.
rem Get the running directory for later ease of use
rem Get the running directory for later ease of use
SET running_directory=%~dp0
SET running_directory=%~dp0
rem Set where this file will install the rest of the files
rem Check the install location whether it exists
SET "install_location=%APPDATA%\CIRCLE"
if not exist "%install_location%\" (
SET "install_location=%ProgramFiles%\CIRCLE"
)
if not exist "%install_location%\" (
if not exist "%install_location%\" (
IF NOT "!output_on_screen!"=="False" (
IF NOT "!output_on_screen!"=="False" (
@echo Installation direcory not found^^! Please delete ^'CIRCLE^' direcory manually
@echo Installation direcory not found^^! Please delete ^'CIRCLE^' direcory manually
>CON
pause
pause
)
)
@echo Installation direcory not found^^! Please delete ^'CIRCLE^' direcory manually 1>&2
goto end
goto end
)
)
IF NOT "!output_on_screen!"=="False" (
IF NOT "!output_on_screen!"=="False" (
@echo Installation direcory found at ^'%install_location%^'
@echo Installation direcory found at ^'%install_location%^'
>CON
)
)
@echo Installation direcory found at ^'%install_location%^'
rem Delete files and directory
rem Delete files and directory
IF NOT "!output_on_screen!"=="False" (
IF NOT "!output_on_screen!"=="False" (
@echo Removing desktop icon
@echo Removing desktop icon>CON
call python "%install_location%\win_install.py" ^-r
@echo Done
@echo Removing files
) else (
call python "%install_location%\win_install.py" ^-r >nul 2>&1
)
)
rd>nul /q/s %install_location% 2>nul
@echo Removing desktop icon
call python "%install_location%\win_install.py" ^-r ^-l "%install_location%\\"
IF NOT "!output_on_screen!"=="False" (
IF NOT "!output_on_screen!"=="False" (
@echo Done
@echo Done
>CON
)
)
@echo Done
:end
:end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment