1
0
mirror of https://gitlab.os-k.eu/neox/CNIRevelator.git synced 2023-08-25 14:03:10 +02:00

Some enhancements

This commit is contained in:
Adrien Bourmault 2019-08-10 22:00:32 +02:00
parent 0f952c8eff
commit 34625673a9
2 changed files with 4 additions and 1 deletions

BIN
src/CNIRevelator.lnk Normal file

Binary file not shown.

View File

@ -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