Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: WAIK , Run a Custom Script...

04 May 2010   #1
Rpz79

Windows 7 Ultimate x64
 
 
WAIK , Run a Custom Script...

if Windows Setup Encounters a Fatal Error.

Hi fellas,
If it's ain't the right forum then i'll be glad to get a link to the MS Tech forum that deals with this kind of things.

My friend has builded a WIM (Windows IMage file) and I'm trying to "upgrade"
my 7 ver to it (Both are Ultimate x64 versions).
It crashes in the PE env (after expanding and rebooting) at the 5th and last stage:
"Transfering files and installing devices and programs"

At WAIK (Windows Autmated Installation Kit) docs it's written:
Quote:
If Windows Setup encounters a fatal error, you can configure Setup to automatically launch a script that contains custom commands or actions. A fatal error is an error in which Windows Setup is prevented from completing the installation.

This functionality is useful when you automate the installation of many systems at the same time. By enabling this functionality, you can immediately detect when an error occurs during Windows Setup and run custom actions.



If Windows Setup encounters a fatal error and is prevented from completing the installation, Windows Setup searches for a command script in the following directory: %WINDIR%\Setup\Scripts\ErrorHandler.cmd. One of two actions will occur, depending on whether the script is found.
  • If the script is not found, a dialog box is displayed with the error text. A user must dismiss the dialog box before Windows Setup exits.
  • If the script is found, the script executes synchronously. No dialog box or error text is displayed. After the ErrorHandler.cmd script completes, Windows Setup exits.
Depending on the phase of Windows Setup, the computer will return to the environment from which Windows Setup was executed (for example, an earlier version of the operating system or Windows PE).


I mounted this install.wim file and found this script folder in it but I don't know how to write this ErrorHandler.cmd (meaning it's scripts) that will:
  1. Finish the installation process even if errors will occur
  2. Write a log file of those errors
Can someone help me with this PLEASE ???



My System SpecsSystem Spec
.

14 May 2010   #2
Rpz79

Windows 7 Ultimate x64
 
 
Bouncing up

Anyone knows how to write a dos/batch script file that will write a log file of these an installastion errors ?

In a MSI file it goes like this:
Code:
msiexec /i File_Name.msi /l*v Output_File.txt
The problem is that we are talking about a setup.exe file that goes through a PE and and in this enviroment a problem occurs that exists the upgrade.

I hope somone knows what I'm talking about...

THNX IN ADVANCE GUYS
My System SpecsSystem Spec
Reply

 WAIK , Run a Custom Script...




Thread Tools





Similar help and support threads
Thread Forum
Parental control : how to allow custom VB script execution?
Hi, For my son, I created under Win 7 64 bits an user account without admin priviledge and with parental control. By default, parental control prevents VB Script execution, which is a good thing. But how can allow a custom made script to be executed in his session? I haven't found that in...
System Security
i try learn waik
I try to learn waik and create answerfile . Now i dont know how to install my own program or software for my costumise windows7 :(
General Discussion
Waik
I am learning to use WAIK to create a WinPE iso. I am all set up and have done the first two steps of the walk thru from the help files. I don't quite understand this step. I guess I need to add imagex now but say when i boot from the iso I want app abc.exe to run do I add it also or do I need an...
Software
WAIK, unattended.xml and what then...?
I try to make some little modifications to my Win7 installation. I installed WAIK and with some tutorials created unattended.xml. But while the tutorials concentrate on the creation of unattended.xml, they don't communicate to me clearly what to do with the file in order to create a working...
Installation & Setup
Difference Between WAIK & Windows PE
Guys, Could some explain to me if they are on in the same or seprate programs for diffent needs? Thanks
Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:00.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App