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
bc83309e
authored
Mar 11, 2015
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninstallation process is folder safe now
parent
7acb58f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/nsi/installer/win_install.py
+14
-0
No files found.
src/nsi/installer/win_install.py
View file @
bc83309e
...
@@ -105,8 +105,22 @@ def main():
...
@@ -105,8 +105,22 @@ def main():
location
=
os
.
path
.
join
(
desktop_path
,
"CIRCLE Client"
)
location
=
os
.
path
.
join
(
desktop_path
,
"CIRCLE Client"
)
if
os
.
path
.
isfile
(
"
%
s
%
s"
%
(
location
,
".lnk"
)):
if
os
.
path
.
isfile
(
"
%
s
%
s"
%
(
location
,
".lnk"
)):
os
.
remove
(
"
%
s
%
s"
%
(
location
,
".lnk"
))
os
.
remove
(
"
%
s
%
s"
%
(
location
,
".lnk"
))
print
"
%
s
%
s file successfully removed"
%
(
location
,
".lnk"
)
if
os
.
path
.
isfile
(
"
%
s
%
s"
%
(
location
,
".url"
)):
if
os
.
path
.
isfile
(
"
%
s
%
s"
%
(
location
,
".url"
)):
os
.
remove
(
"
%
s
%
s"
%
(
location
,
".url"
))
os
.
remove
(
"
%
s
%
s"
%
(
location
,
".url"
))
print
"
%
s
%
s file successfully removed"
%
(
location
,
".url"
)
for
subdir
,
dirs
,
files
in
os
.
walk
(
args
.
location
):
for
file
in
files
:
path
=
os
.
path
.
join
(
subdir
,
file
)
fileName
,
fileExtension
=
os
.
path
.
splitext
(
path
)
if
((
fileExtension
==
'.pyc'
or
fileExtension
==
'.lnk'
or
fileExtension
==
'.url'
or
fileExtension
==
'.log'
)
and
"windowsclasses"
not
in
fileName
and
"uninstall"
not
in
fileName
):
os
.
remove
(
path
)
print
"
%
s file successfully removed"
%
path
else
:
else
:
subprocess
.
call
(
subprocess
.
call
(
"python
%
s
\\
nx_client_installer.py"
%
os
.
path
.
dirname
(
"python
%
s
\\
nx_client_installer.py"
%
os
.
path
.
dirname
(
...
...
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