12/21/2011 3424 views
Hey all,
I am trying to install the Windows Phone SDK 7.1 by script. I have Visual Studio 2010 and SP1 installed and also have XNA Game Studio 4 installed. I am using the install from http://download.microsoft.com/download/A/5/1/A51C88B5-CF00-420C-9288-020CCD6C65C8/WPSDKV71_en1.iso and and I am using the following in my vb script.

strComputer = "."
Set oShell = WScript.CreateObject ("WSCript.shell")

If Not (fso.FileExists("C:\Program Files\Microsoft XDE\1.0\XDE.exe")) Then

oShell.Run """\\server\share\Windows Phone SDK 7.1\setup.exe"" /q /norestart",1,True

End If


If I link the VB Script to install at startup it doesn't seem to fully install. When trying to load in certain templates it throws up error messages. If I log in with my account which has admin rights, open a command prompt and run

"\\server\share\Windows Phone SDK 7.1\setup.exe" /q /norestart

This seems to install properly. Can anyone spot what I am doing wrong please? Surely both are the same command? Why does one work and the other not?
0 Comments   [ + ] Show comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

are you trying to run the vbscript as logonscript or execute from run key or startup...
if this is the case the user must have admin rights to install the setup...

Try :
1. Login to the user where u get error.
2. Uninstall the program and make the machine clean. with only visual studio and other stuffs.
3. goto c:\windows\system32\cmd.exe right click and run as administrator.
4. call the vbs file in the command prompt opened .
5. check your application install successfully.

if installation is fine ... then sure the user in which u try to run does not have admin rights .. so call via startup will fail install only user specific components..
Answered 12/21/2011 by: mahendraKumar
Senior Yellow Belt

Are you running the VB Script with the System account?
Does it work if you run the VB Script manually?
Answered 12/21/2011 by: andemats
Second Degree Black Belt

Yes have it linked to run from startup not login so it should install in the background at Ctrl+Alt+Del screen. I understand that it runs at this stage with the system account and that the system account has admin rights, is that correct? Have wiped my test machine and am trying a clean install again at the minute. will try running the vb script through the command promt when it finishes.
Answered 12/21/2011 by: alphabeta
Black Belt

Are you *sure* that the install is attempted? I ask because, by default, the local System account has no access to network resources. Try copying the script locally (e.g. %SystemRoot%\TEMP) and running it from there.

Alternatively, almost all Microsoft installs are MSI-based so try extracting the MSI and running that, with a transform if necessary, using GPO.
Answered 12/21/2011 by: VBScab
Red Belt

Yes I'm sure the install is attempted (on a side note we have scripts running other software from network share). It installs blend, phone emulator, etc to the start menu so thats how i know it was installing but not installing fully because when I go into VS 2010 and try to open certain templates it throws up the error message (but they open properly if I run setp manually).

On the msi point, it doesn't have one setup.msi (from what I can see), but the elements need to be installed from seperate msi's. When i run setup.exe and then look at Windows Logs and Application, it seems to have 31 msi items having run. I have tried linking all up with no mst but that didn't seem to install properly either.
Answered 12/21/2011 by: alphabeta
Black Belt

What's the error message?
Answered 12/21/2011 by: andemats
Second Degree Black Belt

I go to New Project, Online Template, XNA Game Studio and choose 'VB_Surface_XNA and get the following message:-

A problem was encountered creating the sub project 'SurfaceApplication1'. Error: this template attempted to load component assembly ' Microsoft.XNA.Game Studio, Version=4.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d'. For more information on this problem and how to enable this template, please see documention on Customizing Project Template.

I try and choose the Bounce template and get a message saying:-

The following references must be present before installation can continue: Microsoft XNA Game Studio
Answered 12/21/2011 by: alphabeta
Black Belt