Add OSFMount

This commit is contained in:
2Shirt 2024-09-09 21:04:51 -07:00
parent 6a5a944ea0
commit bbdef56df2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -341,7 +341,7 @@ if ($MyInvocation.InvocationName -ne ".") {
$RegKey = $Hive.OpenSubKey($RegPath)
$CurValue = $RegKey.GetValue(
"Path", $false, [Microsoft.Win32.RegistryValueOptions]::DoNotExpandEnvironmentNames)
$NewValue = "$CurValue;%ProgramFiles%\7-Zip;%ProgramFiles%\wimlib"
$NewValue = "$CurValue;%ProgramFiles%\7-Zip;%ProgramFiles%\OSFMount;%ProgramFiles%\wimlib"
Set-ItemProperty -Path "HKLM:\$RegPath" -Name "Path" -Value $NewValue -Force | Out-Null
$Hive.close()
$RegKey.close()