Answered by:

Sharing Metro apps outside of the appstore

Question

I would like to be able to give another user a copy of my Metro app for testing without
giving him the source code to recompile. To do this, I would like to generate a .appx
file on my machine and then install it on another Windows 8 machine with a developers
license and run it. Here are the steps I have followed:

1) I generated the packages with Store->Create App Packages... in Visual Studio Express

2) I then copied the AppPackages directory to another machine

3) On the other machine I opened a powershell navigated into the _Test directory and tried
to execute ".\Add-AppDevPackage.ps1" This failed with the message:

"...cannot be loaded because running scripts is disabled on this system. ..."

4) I then tried "set-executionPolicy unrestricted". This command failed with
"Access to the registry key HKEY_LOCAL_MACHINE... is denied."

Answers

It sounds like your process broke down in steps 3 and 4. If you don't have permission to run scripts then you can't run the install script. You will need to run PowerShell elevated in order to enable this.