Deploying Windows Phone SDK 7.1
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
Else
End If
WScript.Quit()
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?
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
Else
End If
WScript.Quit()
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
Answers (7)
Please log in to answer
Posted by:
mahendraKumar
13 years ago
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..
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..
Posted by:
andemats
13 years ago
Posted by:
alphabeta
13 years ago
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.
Posted by:
anonymous_9363
13 years ago
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.
Alternatively, almost all Microsoft installs are MSI-based so try extracting the MSI and running that, with a transform if necessary, using GPO.
Posted by:
alphabeta
13 years ago
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.
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.
Posted by:
alphabeta
13 years ago
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
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
![](/build/static/general/appdeploy_logo.png)
so that the conversation will remain readable.