Need to deploy both Visio and Project 2010 by GPO

I'm looking for a way to deploy Visio and Project 2010 to selected users without SCCM.

I tried a logon script based on the one Microsoft posted as a sample in Technet and it worked for some users, but is unreliable.  When the users need both Visio and Project, it would error out because it says 2 setup files can't run at the same time.  So, I set a GPO for logon scripts to run synchronously and it worked for some users, but others would get a black screen at logon that would hang forever.  Seems to me this is UAC interference with no UAC prompt being popped up.  When the script was disabled, they could log on normally.

I thought of startup scripts, but that does not show the user that the software is installing, so they think their computer is stuck booting.

What are solutions?



  • Edited by MyGposts Wednesday, March 07, 2012 3:50 PM
March 7th, 2012 3:48pm

Hi,

Which sample do you use to deploy multiple Office products?
In my test, I have successfully deployed both the Visio and Project by using the following steps:

1. Copy all the installation sources to the shared folders, for example: Project in \\servername\sharedfolder\Project_Professional_2010 and Visio in \\servername\sharedfolder\Visio_2010
2. Create Setup customization file (.MSP file) via the Office Customization Tool (OCT) of Project , saved the Setup file as 20120309Project.MSP in the installation location(i.e. \\servername\sharedfolder\Project_Professional_2010).
3. When I created the .MSP file for Visio, add the following command to Add installations and run programs section:
Target:
\\servername\sharedfolder\Project_Professional_2010\setup.exe
Arguments:
/adminfile 20120309Project.MSP
4. Save and deploy .MSP file of Visio.

After the installation of Visio completed, the command for installing Project would be run properly.


Sincerely
Rex Zhang

Free Windows Admin Tool Kit Click here and download it now
March 9th, 2012 5:42am

I had modified to the logon script example for Office 2010 on this page http://technet.microsoft.com/en-us/library/ff602181.aspx and made two separate scripts.  One installs Visio 2010 and the other installs Project 2010.

They worked OK separately, but had the problem I listed above when both needed to run on the same PC in sequence.

It looks like the way you suggested would work as a manual install except it would keep installing over and over if it was a logon script since I don't see how it would check to see if it already installed earlier before running the installation again the next time they logged on.

Looks like you would have to watch it install and then remove the logon script by hand or have the user click on the setup manually from the share instead of it being automated.  We don't want the users to be able to browse the share and install and/or download this software at will.

I'm looking for something that needs less manual interaction by the user or the admin such as the installation being launched by a logon script that would only run once per assigned PC.




  • Edited by MyGposts Friday, March 09, 2012 7:18 AM
March 9th, 2012 7:13am

Hi,

Have you tried replacing the following entry in your script:
start /wait %DeployServer%\setup.exe /config %ConfigFile%
by, for example:
start /wait %DeployServer%\setup.exe /adminfile 20120309Visio.MSP
Which I mentioned in the step 4 in above post.

What I mean is to use one script and .MSP file to install both products, it doesnt seem to need manual interaction by users.


Sincerely
Rex Zhang

Free Windows Admin Tool Kit Click here and download it now
March 9th, 2012 8:17am

OK, I'll try that when I get back to work next week and see what happens.
March 10th, 2012 1:22am

Hi,

Please inform the results.

Thanks

Free Windows Admin Tool Kit Click here and download it now
March 14th, 2012 9:00am

I can get it to install, but I can't get it to recognize when Visio and /or Project are already installed and not run again if not needed.
March 14th, 2012 5:10pm

This is the login script I'm using for Visio 2010.  I just substitute the work Visio for Project to make a login script for Visio.  

It works but the part where it is supposed to recognize that the product is already installed and not install again doesn't work.  can you see an error or other reason why?

setlocal


REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM *********************************************************************


REM Get ProductName from the Office product's core Setup.xml file, and then add "office14." as a prefix. 
set ProductName=Office14.Visio


REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\server01\userapps\VisioPro2010


REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\server01\userapps\VisioPro2010\Visio.WW\config.xml


REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\server01\userapps\VisioPro2010\logs


REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line.
REM *********************************************************************


IF NOT "%ProgramFiles(x86)%"=="" (goto ARP64) else (goto ARP86)


REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key
:ARP64
reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
if NOT %errorlevel%==1 (goto End)


REM Check for 32 and 64 bit versions of Office 2010 in regular uninstall key.(Office 64bit would also appear here on a 64bit OS) 
:ARP86
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
if %errorlevel%==1 (goto DeployOffice) else (goto End)


REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt


REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End


Endlocal



  • Edited by MyGposts Friday, March 16, 2012 5:48 PM
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2012 5:47pm

I found that the Project script wasn't working properly to recognize it was already installed because the productname is prjpro, not project.

Does anyone have a different  suggestion on how to install multiple applications by logon script?

We don't ALWAYS install both Project and Visio.  Some people only need one or the other.

I need to find a way to make it install this way.

If the user belongs to the Visio group, install Visio once. If the user belongs to the Project group, install Project once.  If the user belongs to both groups, install Visio, wait for the installation to complete and then install Project.  

Can this be done?

The software installations from each script would interfere with each other when the user is added to both groups and when I set a policy to make logon scripts run synchronously, it caused the logon to the desktop to hang even when there was no software being installed.  

I suppose I could make a third security group called "VisioandProject" and put the users that need both into that security group and then use login script that installs both Visio and automatically launches the Project installation as additional software as suggested above, but that seems more convoluted than it needs to be and will cause confusion. 


  • Edited by MyGposts Tuesday, March 20, 2012 12:20 AM
March 20th, 2012 12:18am

Did you ever solved this issue MyGposts?
Free Windows Admin Tool Kit Click here and download it now
March 19th, 2014 3:04pm

I just ran into the same thing today.  I added: timeout /t 480 to create a pause for 480 seconds to one of the scripts.  It's working for me.
August 14th, 2015 4:27pm

This may be some kind of WinPE related issue because we have had second problem ever since upgrading from MDT 2012 to MDT 2013.

I have not been successful adding any new model machines to the Lite Touch boot.  All our old existing hardware can boot into MDT 2013 as they did with MDT 2012, but when I tried adding new machines that required different network drivers, those would also boot to a command prompt and not even get to the TS selection page.

The sysprep and capture TS doesn't have that issue because you launch it from within Windows, but when it boots into Win PE, it has the same boot to command prompt problem.

The network appears to be working in this case because I can do ipconfig in the command prompt window after it fails and the vm has a valid dhcp address and can ping the mdt server.
  • Edited by MyGposts 10 hours 37 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 14th, 2015 4:53pm

This may be some kind of WinPE related issue because we have had second problem ever since upgrading from MDT 2012 to MDT 2013.

I have not been successful adding any new model machines to the Lite Touch boot.  All our old existing hardware can boot into MDT 2013 as they did with MDT 2012, but when I tried adding new machines that required different network drivers, those would also boot to a command prompt and not even get to the TS selection page.

The sysprep and capture TS doesn't have that issue because you launch it from within Windows, but when it boots into Win PE, it has the same boot to command prompt problem.

The network appears to be working in this case because I can do ipconfig in the command prompt window after it fails and the vm has a valid dhcp address and can ping the mdt server.
  • Edited by MyGposts Friday, August 14, 2015 8:55 PM
August 14th, 2015 8:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics