Open luxzg opened 1 year ago
@luxzg Do you mind sharing the names of the files you want persisted from the \Plugins\Monitoring\
folder?
Not at all.
After I've uninstalled MSI Afterburner (choosing to KEEP user files during uninstall) I was left with 3 files in my Monitoring folder:
AIDA64.cfg.user
LibreHardwareMonitor.dll
PerfCounter.cfg.user
.dll file is additional plugin I've used briefly, and two .cfg.user files contain changes to selections in Plugin settings.
EDIT: I've taken a look at json now as well
"persist": "Profiles",
In my case that would skip these files:
Plugins\\Monitoring\\AIDA64.cfg.user
Plugins\\Monitoring\\LibreHardwareMonitor.dll
Plugins\\Monitoring\\PerfCounter.cfg.user
I'm not sure how to solve the .dll situation, as there could be dozens of custom .dlls possible.
But there aren't any other Plugins\\Monitoring\\*.cfg.user
files except user modified ones, so all those could be easily included to persistance if persist
command accepts wildcard + extension scheme.
@luxzg is the LibreHardwareMonitor.dll file that important?
@luxzg Can you test these manifests for me?
scoop bucket add MyScoop 'https://github.com/Zliced13/MyScoop'
scoop install rtss_fixed
scoop install msiafterburner_fixed
LibreHardwareMonitor.dll
isn't important in my case, as those are downloaded and added from Internet, so can be easily replaced. Still, it would stop monitoring of those items until user fixes it manually.
It would be easiest to persist whole folder, I am just too new with scoop to understand the details of persisting process. Eg. if app update is allowed to overwrite these persisted items or not.
Anyway, I did test these fixes and I have a few observations:
Persisting Plugins\Monitoring\AIDA64.cfg.user
Persisting Plugins\Monitoring\PerfCounter.cfg.user
and I see these files in scoop\persist\msiafterburner_fixed\Plugins\Monitoring
So I'd say msiafterburner fix works. Sure enough we'd need to update. Maybe you can fake a new version in json while I add some modifications to files and see what happens after update and cleanup?
Edit: I did change cfg.user files, uninstall, then install again, files are still kept with my modification. Is that enough for a test?
Edit: I did change cfg.user files, uninstall, then install again, files are still kept with my modification. Is that enough for a test?
Yes, if the files are still there after you used the scoop uninstall
command (without the -p
switch), that means it's being persisted.
Prerequisites
Package Name
msiafterburner
Expected/Current Behaviour
"Regular" MSI Afterburner keeps these folders and files on uninstall because they contain user-made changes:
scoop package only persists this folder:
\scoop\persist\msiafterburner\Profiles
This means that any monitoring plugins added or configured by user will be reset on update & deleted on cleanup.
Due to Monitoring folder also containing package provided dlls, it would be expected to at least persist files in this manner:
\Plugins\Monitoring\*.cfg.user
Steps to Reproduce
Possible Solution
Either persist files
\Plugins\Monitoring\*.cfg.user
or add a Note for user to move the files manually beforecleanup
deletes them.Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response