Skip to content

Commit f31daeb

Browse files
Add request admin back
1 parent f5f79e0 commit f31daeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: installer/exporter/Windows/installer.py

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def move_folder(src_folder, dest_folder):
4242

4343

4444
def main():
45+
if not ctypes.windll.shell32.IsUserAnAdmin():
46+
ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1)
47+
4548
destination_folder = os.path.expandvars(r"%appdata%\Autodesk\ApplicationPlugins")
4649
os.makedirs(destination_folder, exist_ok=True)
4750
with tempfile.TemporaryDirectory() as temp_dir:

0 commit comments

Comments
 (0)