I use WAPT to deploy various software applications. So far, nothing illogical, you might say
For each software, I specified, in the def install() the final shortcut in the All Users start menu.
Code: Select all
print("Creation du raccourci vers Outils Multimedias ....")
# creation du raccourci dans le menu demarrer, programmes, outils multimedias ...
create_programs_menu_shortcut('VLC',target=makepath(programfiles64,'VideoLAN','VLC','vlc.exe'),folder=u'Outils Multimedias')
# suppression du raccourci de l application dans le menu demarrer, programmes ... sinon deux raccourcis seront crées : celui par défaut et celui qu'on a ajouté. Ajout de l'argument ignore_errors sinon erreur sous Windows 10 si réinstallation du paquet ...
remove_tree(r'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\VideoLAN', ignore_errors=True)- VLC: lands in Start Menu\Programs\Multimedia Tools
- GeoGebra: lands in Start Menu\Programs\Maths Tools
etc ....
The problem is that if there's a package update, the setup.py file won't be preserved. So I'd have to modify setup.py again so the shortcuts land in the correct location...
So, I was wondering: is it possible to create a "final" package whose sole purpose would be to clean up the start menu after installing software via WAPT?
example :
- VLC installation
- GeoGebra installation
- Anaconda installation
- Application of the Start Menu sorting package to classify applications into the correct subfolders:
-> VLC: Multimedia Tools
-> GeoGebra: Math Tools
-> Anaconda: Programming Tools
If WAPT can execute a .bat file, I can always do it via a .bat file. But the most important thing is that this package is executed very last, relative to the others...
Thank you for your suggestions
