Add rainmeter-portable: feedback needed#2021
Conversation
Ash258
left a comment
There was a problem hiding this comment.
Fix for post_install will follow
|
Using the overwrite mode is a neat trick. 😄 |
| ], | ||
| "bin": [ | ||
| "Rainmeter.exe", | ||
| "SkinInstaller.exe" |
There was a problem hiding this comment.
Is it really neede to shim SkinInstaller?? Does this have some command line handler?
There was a problem hiding this comment.
You can pass skin file to it, that's as far as I know, I just iterated on existing rainmeter.json.
|
Yeah, the second portion of binaries is the "64-bit mode" option in installer. The existing rainmeter.json does this as well, just the default mode is "always overwrite". |
|
How would I go about naming the shortcut: "Rainmeter (portable)" will allow for two shortcuts from |
|
No need to |
ref: ScoopInstaller/Extras#2021 (comment), #3204 (comment) - Add new param `Overwrite` to `Expand-7ZipArchive`, with following values - "All": 7z param `-aoa`, overwrite All existing files without prompt, behave the same with default - "Skip": 7z param `-aos`, Skip extracting of existing files - "Rename": 7z param `-aou`, aUto rename extracting file - Add new param `Switches` to `Expand-7ZipArchive` and `Expand-InnoArchive` - It could pass all unrecognized params to `7z` and `innounp` - Patch `extract_7zip` and `unpack_inno` to adapt to `Expand-XXX` Usage: ScoopInstaller/Extras#2021, ScoopInstaller/Extras#2070

There was a problem with unpacking different architectures in #694. Looking for input on this solution: it works, persistence isn't trivial here, but to my knowledge I managed to persist everything.
"if((Get-Content \"$dir\\Rainmeter.ini\") -eq $Null) { Copy-Item \"$dir\\Defaults\\Layouts\\illustro default\\Rainmeter.ini\", \"$dir\\Defaults\\Skins\", \"$dir\\Defaults\\Layouts\" \"$persist_dir\" -Force -Recurse | Out-Null }",makes default welcome skins appear on new installation."if(Test-Path \"$dir\\Plugins.original\") { Copy-Item \"$dir\\Plugins.original\\*\" \"$persist_dir\\Plugins\" -Force -Recurse; Remove-Item \"$dir\\Plugins.original\" -Force -Recurse | Out-Null }",updates default plugins in case of an update.