diff --git a/src/blenderbim/blenderbim/bim/operator.py b/src/blenderbim/blenderbim/bim/operator.py index 7b491e58be..e65ad34b49 100644 --- a/src/blenderbim/blenderbim/bim/operator.py +++ b/src/blenderbim/blenderbim/bim/operator.py @@ -237,7 +237,7 @@ class FileAssociate(bpy.types.Operator): # tried to do the regitsry change from powershell/cmd - but even admin rights are not enough # this is why we're using .reg reg_change_path = os.path.join(src_dir, "windows_bbim_association.reg") - subprocess.run(["cmd", "/c", reg_change_path]) + subprocess.run(["cmd", "/c", "call", reg_change_path]) ps_script_path = os.path.join(src_dir, "windows_bbim_association.ps1") # NOTE: call powershell with RunAs to get admin rights from user diff --git a/src/blenderbim/blenderbim/libs/desktop/windows_bbim_association.reg b/src/blenderbim/blenderbim/libs/desktop/windows_bbim_association.reg new file mode 100644 index 0000000000..33451e8dc7 --- /dev/null +++ b/src/blenderbim/blenderbim/libs/desktop/windows_bbim_association.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ifc] +[-] \ No newline at end of file