We always wrote a pair of lines to the Wise install.log telling it to
delete the Tools and Lib directories at uninstall time. However, under the old version of Wise, they didn't actually do anything. Under the new version, they work as advertised, and even delete files users added. Got rid of those, and replaced them with similar uninstall cmds that get rid of all .pyc and .pyo files (whether or not the installer created them). This works nicely! It still tears down the directory structure, except for those directories needed to get to any non-.pyc/o file(s) the user may have added.
This commit is contained in:
parent
b8b3291152
commit
5a99e0ca0c
|
@ -1189,6 +1189,11 @@ item: Set Variable
|
||||||
end
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
end
|
end
|
||||||
|
item: Remark
|
||||||
|
end
|
||||||
|
item: Remark
|
||||||
|
Text=Install the license even if they deselect everything <wink>.
|
||||||
|
end
|
||||||
item: Install File
|
item: Install File
|
||||||
Source=..\license
|
Source=..\license
|
||||||
Destination=%MAINDIR%\LICENSE.txt
|
Destination=%MAINDIR%\LICENSE.txt
|
||||||
|
@ -1206,6 +1211,20 @@ item: Install File
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
end
|
end
|
||||||
|
item: Remark
|
||||||
|
Text=These arrange to (recursively!) delete all .pyc and .pyo files at uninstall time.
|
||||||
|
end
|
||||||
|
item: Remark
|
||||||
|
Text=This "does the right thing": any directories left empty at the end are removed.
|
||||||
|
end
|
||||||
|
item: Add Text to INSTALL.LOG
|
||||||
|
Text=File Tree: %MAINDIR%\*.pyc
|
||||||
|
end
|
||||||
|
item: Add Text to INSTALL.LOG
|
||||||
|
Text=File Tree: %MAINDIR%\*.pyo
|
||||||
|
end
|
||||||
|
item: Remark
|
||||||
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=A: interpreter, libraries and Tcl/Tk
|
Text=A: interpreter, libraries and Tcl/Tk
|
||||||
end
|
end
|
||||||
|
@ -1429,14 +1448,6 @@ end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=Libraries (Lib/)
|
Text=Libraries (Lib/)
|
||||||
end
|
end
|
||||||
item: Remark
|
|
||||||
Text=Remove entire Lib directory at uninstall time.
|
|
||||||
end
|
|
||||||
item: Add Text to INSTALL.LOG
|
|
||||||
Text=File Tree: %MAINDIR%\Lib\*.*
|
|
||||||
end
|
|
||||||
item: Remark
|
|
||||||
end
|
|
||||||
item: Install File
|
item: Install File
|
||||||
Source=..\lib\*.py
|
Source=..\lib\*.py
|
||||||
Destination=%MAINDIR%\Lib
|
Destination=%MAINDIR%\Lib
|
||||||
|
@ -1608,14 +1619,6 @@ item: If/While Statement
|
||||||
Value=C
|
Value=C
|
||||||
Flags=00001010
|
Flags=00001010
|
||||||
end
|
end
|
||||||
item: Remark
|
|
||||||
Text=Delete entire Tools directory at uninstall time.
|
|
||||||
end
|
|
||||||
item: Add Text to INSTALL.LOG
|
|
||||||
Text=File Tree: %MAINDIR%\Tools\*.*
|
|
||||||
end
|
|
||||||
item: Remark
|
|
||||||
end
|
|
||||||
item: Install File
|
item: Install File
|
||||||
Source=..\tools\scripts\*.py
|
Source=..\tools\scripts\*.py
|
||||||
Destination=%MAINDIR%\Tools\Scripts
|
Destination=%MAINDIR%\Tools\Scripts
|
||||||
|
|
Loading…
Reference in New Issue