Interrupt windowsw startup for installtion tasks

Posted on 2010-01-08
Last Modified: 2012-08-13
I have created an installation disc that contains all the software I have to install for my company when configuring a new machine.  In all it is about 30 programs which I have configured to install silently one by one.  However some can only be installed after another component has installed and the computer is rebooted.  For example, our point of sale requires that .net 3.5 sp1 is installed first and the system rebooted.  

I am trying to find out how I can interrupt the windows startup process or set the script so that once the system reboots, it automatically restarts from where it left off.  I thought about breaking my install script into several sections, each one labeled to run after a restart, then add a command to the runonce area in the registry to launch the next script on startup.  I have never done this however and was wondering if anyone could instruct me on how to do this or maybe offer a better solution?  I am only using batch files right now and do not have a lot of experience with scripting but am willing to try anything.
Question by:arstacey
    LVL 35

    Expert Comment

    by:Joseph Daly
    It sounds to me that maybe imaging might be a better solution for you that scripting all these programs. With imaging you would create your one master image with everythign configured the way you want and then use that on any new mahcine you may get in.

    Ghost is relatively inexpensive and works very well for this. Acronis is another option in this software which is also very good.

    You could try DriveimageXML to image computers as this is a free tool.

    Author Comment

    I already use ghost primarily.  This is more for the initial setup.  We buy machines as we find deals on them so imaging is not always the best solution, especially across multiple vendors.
    LVL 74

    Accepted Solution

    If the script has to restart the computer the best bet is to get the script that restarts the computer to place an entry in the RunOnce value of the registry for the second part of the script?

    This would only happen once the computer had logged back in but you could also script the registry auto login part.  Then remove this at the start of the new script?

    Just a thought
    LVL 74

    Expert Comment

    by:Glen Knight
    If the image has been configured correctly using SYSPREP and the list of drivers created then there is no reason why the multi vendors should be a problem.

    I used to work for a college that had 2500 workstations across 9 sites and every year they would get imaged to refresh them.  There was many different vendors involved and we only had 1 image.

    Author Comment

    Imaging would be my preferred method but let me explain why I have difficulty with that.  I am essentially the lone IT guy for  a small company with 40 remote locations.    I have a yearly budget of virtually $0 so anything I do has to be free.  We do not have a volume license agreement of any kind and buy our machines with XP (and soon 7) preinstalled.  I then boot them and run my setup cd, change the computer name (these machines are not domain computers) and send them on their way.  

    I work for an agent of AT&T and the type of programs we have on the computers are constantly changing.  That is why I have found it easier to just have a setup folder with all my files and scripts so if we get a new shortcut, file, program or whatever (which we do all the time)  I can just add it to my setup script (or remove it if that is the case) and continue.

    So, my point in all that nonsense was to say that imaging has not proven to be the best solution for me as the biggest part of the job is not the installation of windows, but adding the 40 plus programs that have to be installed and updated.  If I created an image of one of the machines now, there is a good chance that next month, if I used that image on a new machine, I would still have to log onto the machine and do more installs or uninstalls and updates.  

    I think the RunOnce option will do what I need but I am going to follow your advice and revisit the imaging idea.  I think that may be a very useful tool for me in the future.  Thanks demazter!

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now