engert100 Posted July 8, 2008 Share Posted July 8, 2008 (edited) Hi.I have customized an .MSP package for Office 2007 Enterprise and saved it as unattended.msp. After customization there was another file called config.xml that was created.I have put both these files in a folder inside Office 2007 DVD, called customXNAt the root of the DVD i've created a batch file called installOffice.bat with the following code @ECHO offtitle Microsoft Office 2007ECHO.ECHO Installing Microsoft Office 2007Echo Please wait...setup.exe /adminfile customXN/Unattended.MSPexitI have put this whole Office 2007 folder inside $OEm$/$1/Install/Applications/O2007In my Winnt.sif i have the following entry:[SetupParams] UserExecute = "%systemdrive%\install\RunOnceEx.cmd"I have put the RunOnceEx.cmd file in $OEm$/$1/Install Folder. In the same folder i have a cleanup.cmdSo far so bad.RunOnceEx has the following code: @echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\010 /VE /D "Microsoft Office 2007" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Applications\O2007\installOffice.bat" /fREG ADD %KEY%\020 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\cleanup.cmd" /fEXITSo, when Administrator auto log-ins for the first time i get :please go to the control panel to install and configure system components and Office 2007 does not install.Why?It's driving me crazy. Has anyone seen this before? Please help.EDIT: i forgot to mention that when i run the installOffice.bat after i double click it manually, it install Office 2007 properly, but it doesn't do it at RunOnceEx. Edited July 9, 2008 by engert100 Link to comment Share on other sites More sharing options...
mara- Posted July 8, 2008 Share Posted July 8, 2008 I'm not some expert in unattended installations but I think that your problem lies in[SetupParams] UserExecute = "%systemdrive%\install\RunOnceEx.cmd"In this way you are launching install from your hard drive, but in your RunOnceEx I can't see that you copied Office Installations files or .bat file to hard drive. Or to launch it directly from CD you need to define letter of your drive. Search for function on the forum. That function needs to be added to RunOnceEx and to be used instead of %systemdrive%.Cheers Link to comment Share on other sites More sharing options...
engert100 Posted July 8, 2008 Author Share Posted July 8, 2008 (edited) All my files which are in $OEM$ folders are copied to the hard drive during the Text-mode SetupAt T-9 minute marker during GUI-mode Setup i call RunOnceEx from the [setupParams] function of Winnt.sif.At this point all registry entries are in HKLM/Software/Microsoft/Windows/CurentVersion/RunOnceExSo, everything is copied to the hard drive i can assure you on that. Edited July 8, 2008 by engert100 Link to comment Share on other sites More sharing options...
engert100 Posted July 9, 2008 Author Share Posted July 9, 2008 HA! Solved it!After banging my head to the wall for about 8 hours, i figured it out. It's so simple that i can't believe it.Hopefully this will save some hours to someone else.The problem lies into the installOffice.bat file which is in the root directory of the Office 2007 DVD.Typically everyone (including microsoft) tells you that after you've created a .msp file , create a simple batch file to call this .msp and deploy it. No one mentions how important is to call this .msp the correct way. So the code: @ECHO offtitle Microsoft Office 2007ECHO.ECHO Installing Microsoft Office 2007Echo Please wait...setup.exe /adminfile customXN/Unattended.MSPexitshould be:@ECHO offtitle Microsoft Office 2007ECHO.ECHO Installing Microsoft Office 2007Echo Please wait...%systemdrive%\install\applications\o2007\setup.exe /adminfile customXN\Unattended.MSPexitNow why does this happen? Well because Microsoft/Bill Gates/Windows is retarded.Go to Run and type setup. You'll get: please go to the control panel to install and configure system components Or if you browse to Windows/System32 and double click setup, you'll get the same message.So, because when you simply call setup.exe /adminfile customXN/Unattended.MSP Windows thinks you're talking about the Setup.exe in the System32 folder. So that's why you have to tell it the whole path %systemdrive%\install\applications\o2007\setup.exe /adminfile customXN\Unattended.MSPHope this will help someone in the future.After googling for hours, no one in the Internet has a clear answer for this problem. Link to comment Share on other sites More sharing options...
mjbdiver Posted September 12, 2008 Share Posted September 12, 2008 I was having the exact same problem with the "Please go to the Control Panel" message and was doing some research on it when I came across this forum. It sure saved me from having to bang my head on the wall! Thanks for the help.Mike Link to comment Share on other sites More sharing options...
CodeRunner Posted November 27, 2012 Share Posted November 27, 2012 HiI'm from the future... and I thank you for helping me solving my issue! Greetz Link to comment Share on other sites More sharing options...
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