Kelsenellenelvian Posted November 22, 2007 Share Posted November 22, 2007 OK so far I have passed 3 tests with Office 07 full and Sharepoint Designer which I had been gettign the error with lately.I had a brainstorm. Since something on the install process is locking the reboot file I decided why not try using an external script to call the msp file.... (So WPI watches the .exe instead of the Office install)If you call the installer with a script and have a sleep of a bit (Like 1-2 minutes) all proccesses finish and everything goes on fine.A bit more testing and some polish on the scripts and I will post the compiled scripts with better instructions in this thread! Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted November 22, 2007 Author Share Posted November 22, 2007 here is the au3 script (Save as blah.au3); ----> The Office and reboot.js file error definitive fix!AutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 4)BlockInput(0); ----> Add the name of your .msp file here. (I have mine in the same directory as the setup.exe file)RunWait( @ScriptDir & "\setup.exe /adminfile Office.msp", "", @SW_HIDE); ----> If you have a SLOW pc and are still getting the error make this number higher (I suggest by 5000 increments)Sleep(10000)ExitAnd then simply call it like so in WPI:"%wpipath%\Office07\Office_installer.exe"All you need to do is compile this with the auto-it program (Google is your friend) and place it in the same dir as the .msp file! Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted November 23, 2007 Author Share Posted November 23, 2007 Here are 3 pre-compiled installers for you to use immediatly. (Even have pretty icons)2 are for office 07 and one is for SharePoint designer. (Hell they are all the same though just calling different names)Office_installer.exe assumes your .msp file is calling office.mspWord_installer.exe assumes your .msp is called word.mspSP_installer assumes your .msp is called sp.mspThey all HAVE to be in the same dir as the setup.exe for Office or Sharepoint.If needed I will post a quick tut on making your admin install (Super easy) and including updates (Also super easy)Have fun with your new error free installsP.S. Don't forget to check back on the 29th you'll have a suprise! Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted November 23, 2007 Author Share Posted November 23, 2007 Reserved Link to comment Share on other sites More sharing options...
midiboy Posted December 4, 2007 Share Posted December 4, 2007 Hi Kelsenellenelvian,first, thanks for the brainstorming and solution finding ! One question though ...You are saying the problem appeared because WPI watched the installer (and something in the installer is locking the reboot file and this somehow is a problem). But I am already calling a cmd in WPI and the problem still happens.I install office like this:In WPI I call a cmd like this:%root%\\Microsoft\\Office2007\\silent_install.cmdThe silent_install.cmd then does this:start /wait .\setup.exestart /wait .\SaveAsPDF.exe /qif exist .\WindowsXP-KB915865-v11-x86-DEU.exe start /wait .\WindowsXP-KB915865-v11-x86-DEU.exe /passive /norestartif exist .\officemath.msi start /wait .\officemath.msi /passive /norestartIn what way is this different from your solution except you use AutoIt instead of a cmd ? Is this the solution ? Or is the solution that WPI watches an exe instead of a cmd ? Because I could also use a cmd Compiler to compile the cmd into an exe if thats the solution ...I am not questioning your solution (haven´t tried it yet) but I would like to understand where the solution is excactly so I can adapt your solution to my setup ...Thanks for your help !Alex Link to comment Share on other sites More sharing options...
zorphnog Posted December 4, 2007 Share Posted December 4, 2007 As I understand it, the key is having a sleep command within the external script. From my experience, the Office installer exe's return before they have completely finished. Therefore, all of the resources used by the installer have not been freed yet. So adding the sleep command allows the installer to finish freeing up resources it has locked (which conflict with WPI) before it returns to WPI. In essence it delays the original installers return time. Link to comment Share on other sites More sharing options...
midiboy Posted December 9, 2007 Share Posted December 9, 2007 (edited) Hi !I understand. Ok, will try this soon :-)edit:No, did not work. So the sleeping alone cannot be the solution. My code is like this:start /wait .\setup.exeping -n 120 127.0.0.1>nulstart /wait .\SaveAsPDF.exe /qif exist .\officemath.msi start /wait .\officemath.msi /passive /norestartI did the same thing for Visio, which installs right after Office. Also, SP1 is in the Updates folder. And thats the reason why I don´t think this will work at all. The problem seems to happen either during the update installation or after the Office and during the Visio installation. So the sleep command (or in my case the ping localhost command comes to late because the problem happens while the script waits for the Office or Visio installation to finish, not after the installation finished.I will now try with the autoit script, however, I doubt that it will behave different from a cmd, unless the solution is using Autoit instead of anything else ....?Alex Edited December 12, 2007 by midiboy Link to comment Share on other sites More sharing options...
midiboy Posted December 12, 2007 Share Posted December 12, 2007 (edited) Hi again,mhh, does not work with the autoit script either. Now I get an error message right after the Office installation (the office installer still shows the Updating ... screen) saying that an error occured in the script on line 1. Wrong symbol/sign or something (it was shown in german).The scrpit looks like this:; ----> The Office and reboot.js file error definitive fix!AutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 4)BlockInput(0); ----> Add the name of your .msp file here. (I have mine in the same directory as the setup.exe file)RunWait( @ScriptDir & "\setup.exe", "", @SW_HIDE); ----> If you have a SLOW pc and are still getting the error make this number higher (I suggest by 5000 increments)Sleep(12000)RunWait( @ScriptDir & "\officemath.msi /passive /norestart", "", @SW_HIDE)RunWait( @ScriptDir & "\SaveAsPDF.exe /q", "", @SW_HIDE)ExitAfter I click on either yes or no for entering the debug mode, WPI ends ...Bye,Alex Edited December 12, 2007 by midiboy Link to comment Share on other sites More sharing options...
exhaler Posted December 15, 2007 Share Posted December 15, 2007 (edited) does this problem occur when installing a custom install not a full installation??i used the argumen setup.exe /config custom-uA.XMLi only install word, excel, and powerpoint Edited December 15, 2007 by exhaler Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 22, 2007 Author Share Posted December 22, 2007 No clue.. Sorry. Link to comment Share on other sites More sharing options...
steviewonder Posted February 2, 2008 Share Posted February 2, 2008 Only solution that I'm going to use is torun Office 2007 with a seperate js script before wpi is launched Link to comment Share on other sites More sharing options...
ferska Posted February 13, 2008 Share Posted February 13, 2008 I get reboot.js error with office 2003 or 2007, mi wpi code is like this:%CDROM%\\Install\\Office2003\\setup.exe TRANSFORMS="Custom.MST" /qb-please help me. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 21, 2008 Author Share Posted May 21, 2008 here is the au3 script (Save as blah.au3); ----> The Office and reboot.js file error definitive fix!AutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 4)BlockInput(0); ----> Add the name of your .msp file here. (I have mine in the same directory as the setup.exe file)RunWait( @ScriptDir & "\setup.exe /adminfile Office.msp", "", @SW_HIDE); ----> If you have a SLOW pc and are still getting the error make this number higher (I suggest by 5000 increments)Sleep(10000)ExitAnd then simply call it like so in WPI:"%wpipath%\Office07\Office_installer.exe"All you need to do is compile this with the auto-it program (Google is your friend) and place it in the same dir as the .msp file! Link to comment Share on other sites More sharing options...
gyan1010 Posted May 23, 2008 Share Posted May 23, 2008 OK What if I already have my office install packed into a silent switchless installer I made with 7z switchless installer method. Will I have to unpack everything or can I just useRunWait( @ScriptDir & "<path to my switchless installer>", "", @SW_HIDE)instead. Also will getting rid of this error make the WPI wizard stay open until everything is completely done? Because even with the error everything installs but the GUI for the wizard goes away after the error but the office install is still running and I have to view task manager to see when it finishes before I can reboot. Link to comment Share on other sites More sharing options...
Lalaland69 Posted July 7, 2008 Share Posted July 7, 2008 My office setup is a stand alone silent one, i dont have a msp file as all the details are already intergrated, how do i do this without the msp file? 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