Update inst.py

Strip Quotes from path variable to avoid creating broken path's when calling .parent
This commit is contained in:
Joshua Tews 2024-06-18 10:15:17 -07:00 committed by GitHub
parent 9ae0815200
commit ea4626b864
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ def get_vmpath():
with winreg.OpenKey(
winreg.HKEY_LOCAL_MACHINE, r"{}".format("\\".join((REG_KEY, VM_KEY)))
) as vm_key:
return winreg.QueryValueEx(vm_key, r"UninstallString")[0]
return winreg.QueryValueEx(vm_key, r"UninstallString")[0].strip("\"")
try: