diff --git a/src/CNIRevelator.lnk b/src/CNIRevelator.lnk new file mode 100644 index 0000000..3d7d4d0 Binary files /dev/null and b/src/CNIRevelator.lnk differ diff --git a/src/updater.py b/src/updater.py index b02ca37..7f8d54e 100644 --- a/src/updater.py +++ b/src/updater.py @@ -56,7 +56,7 @@ def createShortcut(path, target='', wDir='', icon=''): shortcut.close() else: shell = Dispatch('WScript.Shell') - shortcut = shell.CreateShortCut(path) + shortcut = shell.CreateShortCut(shell.SpecialFolders("Desktop") + r"\{}".format(path)) shortcut.Targetpath = target shortcut.WorkingDirectory = wDir if icon == '': @@ -284,6 +284,9 @@ def batch(credentials): shutil.rmtree(UPATH + 'temp') logfile.printdbg('Extracted :' + UPATH + '\\CNIRevelator.exe') + # Make a shortcut + createShortcut("CNIRevelator.lnk", UPATH + '\\CNIRevelator.exe', UPATH) + launcherWindow.printmsg('Success !') # Cleanup