Commit bc83309e by Csók Tamás

uninstallation process is folder safe now

parent 7acb58f4
......@@ -105,8 +105,22 @@ def main():
location = os.path.join(desktop_path, "CIRCLE Client")
if os.path.isfile("%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")):
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:
subprocess.call(
"python %s\\nx_client_installer.py" % os.path.dirname(
......
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 sign in to comment