I'm stuck on the uninstallation part of a Windows 7 32-bit program.
Here's my code:
# works
# the program uninstalls correctly + the license file and its directory tree in ProgramData
print('uninstalling the software')
run(r'"C:\Program Files\rep 1\rep2\Uninstall.exe" /S')
remove_tree(r'C:\ProgramData\rep3')
# doesn't work
remove_desktop_shortcut('toto.lnk')
remove_programs_menu_shortcut('toto.lnk')
remove_tree(r'C:\Program Files\rep 1')
1/ I can't remove the shortcut from the desktop and the Start Menu
. 2/ remove_tree worked fine for C:\ProgramData but won't do anything for C:\Program Files
(permissions issue?).
Any ideas are welcome
. Thank you.
