Last Revised: 2024-09-07
I made this guide to help anyone interested in editing the Windows Registry.
It is possible to modify the entries of the Windows Registry.
To do this, you need to create a file that ends with the extension .reg.
# useage: | |
# scoop-import <exported_list_file> | |
param( | |
$exported | |
) | |
$apps = ( | |
Get-Content -Path $exported | Select-String '(?<app>.*)\s\(v:(?<version>.*)\)\s\[(?<bucket>.*)\]' -AllMatches | | |
Foreach-Object {$_.Matches} | | |
Foreach-Object {($_.Groups["bucket"].Value)+"/"+($_.Groups["app"].Value)} |
Add-Type -Namespace Win32 -Name NativeMethods -MemberDefinition @" | |
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] | |
public static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam, uint fuFlags, uint uTimeout, out UIntPtr lpdwResult); | |
"@ | |
function Send-SettingChange { | |
$HWND_BROADCAST = [IntPtr] 0xffff; | |
$WM_SETTINGCHANGE = 0x1a; | |
$result = [UIntPtr]::Zero |
package main | |
import ( | |
"image" | |
_ "image/gif" | |
_ "image/jpeg" | |
_ "image/png" | |
"io" | |
"mime" |