paper Posted January 18, 2008 Posted January 18, 2008 gah. help! this why doesn't this work?! The computer returns a 1, stating it's not installed and attempts to run setup.exe but fails.It's throwing errors at the "setup.exe /adminfile blah.msp" partIf i use either it says that both either /config and /adminfile is an invalid switch?!Invalid switch - /adminfilesetlocalREM *********************************************************************REM Environment customization begins here. Modify variables below.REM *********************************************************************REM Get ProductName from the Office product's core Setup.xml file.set ProductName=EnterpriseREM Set DeployServer to a network-accessible location containing the Office source files.set DeployServer="\\Software\Installation Software\Office\Office 2007 Enterprise\Enterprise.WW"REM Set ConfigFile to the configuration file to be used for deployment REM (required)set ConfigFile="\\Software\Installation Software\Office\Office 2007 Enterprise\Enterprise.WW\config.xml"REM Set LogLocation to a central directory to collect log files.set LogLocation="\\Software\Installation Software\Office\Office 2007 Enterprise\O2k7Log"REM *********************************************************************REM Deployment code begins here. Do not modify anything below this line.REM *********************************************************************IF NOT "%ProgramFiles(x86)%"=="" SET WOW6432NODE=WOW6432NODE\reg query HKEY_LOCAL_MACHINE\SOFTWARE\%WOW6432NODE%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.:DeployOfficeREM start /wait %DeployServer%\setup.exe /config %ConfigFile%start /wait %DeployServer%\setup.exe /adminfile %DeployServer%\ok27displaybasic.MSP"echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txtREM If 1 returned - Product not found. Attempted to run setup.REM If 0 or other returned - Product was found or another error occurred. Do nothing.:EndEndlocaland possibly dumb question.. how come i can't use PsExec to push this out as it doesn't seem to work? even tried throwing the setup.exe command in a BAT and tried to run it with PsExec but it just seemed to hang on the computer.psexec \\computer -u domain/Admin -p Password "\\Software\Installation Software\Office\Office 2007 Enterprise\setup.exe" /adminfile "\\Software\Installation Software\Office\Office 2007 Enterprise\o2kdisplaybasic.MSP"
aviv00 Posted January 22, 2008 Posted January 22, 2008 (edited) psexec open console [ as system, run set to see what account is runing from]u need to run this cmd under exist useruse telnet GL Edited January 22, 2008 by aviv00
paper Posted January 28, 2008 Author Posted January 28, 2008 (edited) telnet's not gonna work. I need to deploy this to some 400 clients.. I figured part of it out.. it had to do with the quotes but now it's saying the install is invalid. Weird bc if you manually click on setup.exe it runs fine, but running from the script it doesnt... i'm thinking it may be the quotes again.. still troubleshooting.. psexec \\computer -u domain/Admin -p Password "\\Software\Installation Software\Office\Office 2007 Enterprise\setup.exe /adminfile" "\\Software\Installation Software\Office\Office 2007 Enterprise\o2kdisplaybasic.MSP" Edited January 28, 2008 by paper
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now