I recently purchased the K1100 box and getting familiar with the box, and this forum have been a great help to have on the side, so I hope some of you can help me out. I am struggeling a good deal running a specific script including a reboot. I have a specific task for deploying Office 2010 that I need to run. In order to make sure Office 2007 is completly uninstalled prior Office 2010 I have a .vbs file who takes care of that and that part is working perfectly. In the final stage it makes a reboot and I am having a hard time launching the Office 2010 installation which I have checked in to the box and which works when I deploy as an MI, but I can't get it to kick in after the reboot.

I have created it as an Offline script with the box: "Also Run at User Login" ticked, so the installation would start after login and the Kbox agent is also scanning configuration after reboot and thats it, nothing happens.

I have tried to put the installation of Office 2010 in the "On success" section, and later in the "remidiation" section and finally tried to put in a "2nd task" section, but same result.

Does anyone have a tip how to accomplish my task as I haven't been able to see a similar post on this forum.
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


If I'm reading this right- your script is being interrupted with a reboot. Separate the 2 into different scripts and add some verififaction steps to each to ensure they don't run when they shouldn't.
If I've misunderstood, please post the actual script[s] here and maybe we can help further.
Answered 03/29/2011 by: cblake
Red Belt

Please log in to comment
Still struggeling a bit with this. My script runs fine and kicks in the reboot, but I need the script to pause until reboot finishes, is this possible ?

Cblake you mentioned splitting it up in two scripts, but how do I call the second script after the first ? My knowledge is still some limited within the Kbox scripting :o)

My script so far is quite simple for testing purposes and splitted in two tasks:
Task 1:
Verify that the file “”%ProgramFiles%\Microsoft Office\Office12\“\WINWORD.EXE” exists.
On Success:
Launch “$(KBOX_SYS_DIR)\cscript.exe” with params “”$(KACE_DEPENDENCY_DIR)\OffScrub07.vbs“ ”Smallbusiness, Outlook“”
Launch “$(KBOX_SYS_DIR)\shutdown.exe” with params “-r -f -t 90”

All this works perfect but the script continues during the shutdown counter instead of waiting for the reboot to finish.

Task 2:
Verify that the product “”%ProgramFiles%\Microsoft Office\"Winword.exe” does not hav version “14.0.5123.5000”
On Success
Install “Microsoft Office Professionel Plus 2010” with arguments “setup.exe”

Hope it makes sense :o)
Answered 03/30/2011 by: kko85
Senior Yellow Belt

Please log in to comment
I haven't deployed Office 2010, but when I configured Office 2007 deployments, the Office Configuration tool has an option to uninstall older versions of office. If you set this up and run the office 2010 install, this would hopefully uninstall 2007 and install 2010 all in one step. This would probably be an easier path to accomplish this upgrade than having to create two scripts.
Answered 03/30/2011 by: darkhawktman
Green Belt

Please log in to comment
Yeah I know, and I already have some info in the .msp file. But our Office 2007 installations have been handled badly, so the normal uninstaller simply can't do the job good enough unfortunately.

Another approach to this, which I will test today is to run the script, make the reboot and see if I can get the MI to kick in during the reboot adding the two task under the same label, hopefully this will work.
Answered 03/30/2011 by: kko85
Senior Yellow Belt

Please log in to comment