mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
update to dll loading
Added fetch dll path through registry. Added custom error class VBPathError in case dll path was not found Added function Setup_DLL to base.ps1 Wrapper setup stops if setup_dll returns false (no login, no class setup)
This commit is contained in:
15
lib/inst.ps1
Normal file
15
lib/inst.ps1
Normal file
@@ -0,0 +1,15 @@
|
||||
Function Get_VBPath {
|
||||
@(
|
||||
'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall',
|
||||
'Registry::HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
|
||||
) | ForEach-Object {
|
||||
if(Test-Path -Path $_) {
|
||||
(Get-ChildItem -Path $_\*) | ForEach-Object {
|
||||
if($_.Name.Contains("Voicemeeter")) {
|
||||
$reg = -join("Registry::", $_.Name)
|
||||
return $(Get-ItemPropertyValue -Path $reg -Name UninstallString | Split-Path -Parent)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user