Page 1 of 1

Package deployment help

Published: May 27, 2021 - 5:19 PM
by mat-yeah-oh
Good morning,
I'd like to change the installation folder of a package using PyScripter. (I have no knowledge of Python; I modified a basic script until I got this:)

Code: Select all

from setuphelpers import *
uninstallkey = []

def install():
	create_desktop_shortcut(r'nom_raccourci', target=r'C:\Program Files (x86)\…\.exe')
	install_exe_if_needed("xx.exe",'/S /v/qn',
		key='{clé}',
		min_version="x.x",
		killbefore="javaw.exe")
	
def uninstall():
	run(r' MsiExec.exe /X{clé} /qn')
	remove_desktop_shortcut(r'nom_raccourci')
Note that remove_desktop_shortcut works from pyscripter but from wapt when I uninstall a package from a client machine it does not remove the shortcut.
I would therefore like to know if it is possible to modify the installation path of a package with an option to add to the code and also why remove_desktop_shortcut does not work.
Thank you,
Matteo.