cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

mdk dependencies installer error unauthorizedaccess

2,315

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

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert

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 CurrentUser

Alternatively, 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
miqueias_maia
Participant
0 Likes

I think it is an important details and must be inside tutorial pages. All windows machines that I've made this process needed this configuration. Maybe jitendrakumar.kansal coude put it on.

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Likes

miqueias.maia

It's already covered in the tutorial (step1 under Windows).

rajeevparmar
Explorer
0 Likes

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

rajeevparmar
Explorer
0 Likes

Seems like the policy update worked but windows dependency installer is still not working

miqueias_maia
Participant
0 Likes

rajeevparmar, try to execute the first command on PowerShell. I did help a person today and works good.

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser