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:
parent
0f952c8eff
commit
34625673a9
BIN
src/CNIRevelator.lnk
Normal file
BIN
src/CNIRevelator.lnk
Normal file
Binary file not shown.
@ -56,7 +56,7 @@ def createShortcut(path, target='', wDir='', icon=''):
|
|||||||
shortcut.close()
|
shortcut.close()
|
||||||
else:
|
else:
|
||||||
shell = Dispatch('WScript.Shell')
|
shell = Dispatch('WScript.Shell')
|
||||||
shortcut = shell.CreateShortCut(path)
|
shortcut = shell.CreateShortCut(shell.SpecialFolders("Desktop") + r"\{}".format(path))
|
||||||
shortcut.Targetpath = target
|
shortcut.Targetpath = target
|
||||||
shortcut.WorkingDirectory = wDir
|
shortcut.WorkingDirectory = wDir
|
||||||
if icon == '':
|
if icon == '':
|
||||||
@ -284,6 +284,9 @@ def batch(credentials):
|
|||||||
shutil.rmtree(UPATH + 'temp')
|
shutil.rmtree(UPATH + 'temp')
|
||||||
logfile.printdbg('Extracted :' + UPATH + '\\CNIRevelator.exe')
|
logfile.printdbg('Extracted :' + UPATH + '\\CNIRevelator.exe')
|
||||||
|
|
||||||
|
# Make a shortcut
|
||||||
|
createShortcut("CNIRevelator.lnk", UPATH + '\\CNIRevelator.exe', UPATH)
|
||||||
|
|
||||||
launcherWindow.printmsg('Success !')
|
launcherWindow.printmsg('Success !')
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user