mirror of
https://github.com/hansjone/netx.git
synced 2026-10-15 06:03:18 +08:00
Fix Python runtime cleanup on upgrade
This commit is contained in:
parent
5e80932c4a
commit
19d4597b94
5 changed files with 16 additions and 7 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#define MyAppName "NetX"
|
||||
#ifndef MyAppVersion
|
||||
#define MyAppVersion "0.4.14"
|
||||
#define MyAppVersion "0.4.15"
|
||||
#endif
|
||||
#define MyAppPublisher "NetX"
|
||||
#define MyAppURL "https://github.com/hansjone/netx"
|
||||
|
|
@ -154,6 +154,11 @@ Name: "{commonappdata}\NetX\pgdata"; Permissions: users-modify
|
|||
Name: "{commonappdata}\NetX\backups"; Permissions: users-modify
|
||||
|
||||
[InstallDelete]
|
||||
; Python minor releases can change stdlib layout (for example pathlib.py -> pathlib\\).
|
||||
; Remove the previous runtime and venv before copying the new ones so an upgrade
|
||||
; cannot leave orphaned modules that shadow files from the shipped Python version.
|
||||
Type: filesandordirs; Name: "{app}\python\runtime"
|
||||
Type: filesandordirs; Name: "{app}\.venv"
|
||||
; Remove legacy desktop shortcuts from older Setup builds (keep a single NetX icon).
|
||||
Type: files; Name: "{commondesktop}\NetX Start.lnk"
|
||||
Type: files; Name: "{commondesktop}\NetX First-time setup.lnk"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue