Developer License Registration from installer scripts using powershell
-
vendredi 13 avril 2012 23:50
Hi,
I am writting a Metro Apps installer using Powershell. I need to get a developer's license as part of this installer.
When I run the command Show-WindowsDeveloperLicenseRegistration it works perfectly fine from the command prompt but when I run it from the script I get the following
ObjectNotFound: (Show-Show-WindowsDeveloperLicenseRegistration :String) {}, CommandNotFoundException.
I am surely missing the class/namespace for this. Any idea which namespace this belongs too?
Also, Is it possible to send in the Live id and password too from the command and avoid getting the pop-up to fill in the credentials?
Thanks,
Shruthi.
Toutes les réponses
-
vendredi 13 avril 2012 23:51
ObjectNotFound: (Show-WindowsDeveloperLicenseRegistration :String) {}, CommandNotFoundException.
-
lundi 16 avril 2012 18:15Modérateur
Hello,
try doing a
import-module WindowsDeveloperLicense first.
Unfortunately, the cmdlet doesn't take a username and password. The cmdlet calls AcquireDeveloperLicense which also doesn't have the parameters http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/7be92f16-7179-4d74-9915-c6f21e0f4c55.
thanks!
mike
- Marqué comme réponse Vicky SongModerator lundi 7 mai 2012 02:16

