Unofficial GUI for Microsoft's Windows Package Manager (winget). Kinda like Synaptic, but for Windows. Not associated with either Microsoft or the Synaptic project, and Microsoft does not endorse this software.
This PR includes an option to delete temp files after cache update is complete as well as a way to delete the old cache folder in %AppData%.
Details:
Since the package list cache folder was moved from %AppData% to %LocalAppData%, some may find it useful to have a way to delete the old cache folder from a GUI. This can be done from the Tools>Options...>Refresh cache>Delete cache files in Roaming button.
There's a confirmation to make sure people really want to delete the folder.
For now, it can be clicked even if the folder doesn't exist, but that'll be changed soon.
A linklabel will be added so people can open it if they want to.
Developers using libguinget can use this by running libguinget.PackageListTools.DeleteCacheFilesInRoaming(Me). It's assumed you're using this from a form as the messageboxes are attached to the calling form.
Temp files can now be deleted once the cache update is complete if the Delete temporary files after cache update checkbox under Tools>Options...>Refresh cache is checked.
Database temp files aren't deleted after cache update if updating the database is off.
The sub used for this can have different folder paths passed to it, which will help when support for more sources is added.
If you're an app developer who's using libguinget, simply set PackageListTools.DeleteTempDirsAfterCacheUpdate = True before running the cache update to use this.
A sources manager app has been added, but it's still in very early development. Not sure if it'll be ready by the time the next version is out.
Tabs in the Options window have been switched around where more potentially-relevant ones are above ones that might not be used as much.
Code regions have been added for slightly better organization.
This PR includes an option to delete temp files after cache update is complete as well as a way to delete the old cache folder in %AppData%.
Details:
Tools>Options...>Refresh cache>Delete cache files in Roaming
button.libguinget.PackageListTools.DeleteCacheFilesInRoaming(Me)
. It's assumed you're using this from a form as the messageboxes are attached to the calling form.Delete temporary files after cache update
checkbox underTools>Options...>Refresh cache
is checked.PackageListTools.DeleteTempDirsAfterCacheUpdate = True
before running the cache update to use this.