on ‎2021 Jan 05 12:24 PM
Hi Team,
While trying to run MDK dependencies installer, I am getting the following error:


I have tried to run the installer with the following arguments as well:
.\MDK_Dependencies_Installer.exe Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
The result is the same. How to resolve this issue?
Thanks,
Harish
Request clarification before answering.
When you set the execution policy it needs to be done as a command in power shell. When you append the Set-ExecutionPolicy to the executable the values are treated as command line arguments to the dependency installer and will not have the desired effect.
Execute the below command in a Power Shell window and then try to run the dependency installer again.
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUserAlternatively, you can also try the following if that does not work:
1. Open Powershell (As Administrator if possible)
2. cd to <MDK_SDK folder>/MDK Dependencies Installer-win32-ia32/resources/app/cli/
3. run:
powershell -file main.ps1 check
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
miqueias.maia
It's already covered in the tutorial (step1 under Windows).
This is somehow not working for me. I am getting below error when i execute the above commands.
File D:\BP\MDK_SDK\MDKDependenciesInstallerWindows\MDK_Dependencies\resources\app\cli\main.ps1 cannot be loaded. The
file D:\BP\MDK_SDK\MDKDependenciesInstallerWindows\MDK_Dependencies\resources\app\cli\main.ps1 is not digitally
signed. You cannot run this script on the current system. For more information about running scripts and setting
execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
+ CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 7 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.