A. A utility is supplied on the NT distribution CD called SYSDIFF.EXE which is used to create a file containing files and registry changes needed for an application or set of applications to be installed. To use SYSDIFF just copy it from the CD to your hard disk
- Insert the NT CD-ROM
- Move to the <CD-ROM>:\Support\Deptools\i386 directory
- Create a directory on you local hard disk (e.g. SYSDIFF)
- Copy over SYSDIFF.EXE and SYSDIFF.INF to the directory
Alternativly there is a newer version available as a fix from ftp://ftp.microsoft.com/bussys/winnt/winnt-public/fixes/usa/NT40/utilities/Sysdiff-fix/, download sysdiffa.exe for Alpha, sysdiffi.exe for Intel.
The basics behind SYSDIFF is it creates a snapshot of the system before the application is installed, the application is installed and SYSDIFF is run again which compares the current system to the snapshot taken, and any changes to the registry and files are saved. An example usage need to include the following
- Create an initial snapshot of the system
SYSDIFF /snap <snapshot file name, e.g. snapfile , no extension> - Install the application to the machine (e.g. install Office 97 :-) cool app )
- Create a difference file based on the current system configuration and the
snapshot file
SYSDIFF /diff /c:<title> <snapshot file> <difference file, e.g. difffile, no extension>
e.g. SYSDIFF /diff /c:officediff snap difffile - Have a look at the differences
SYSDIFF /dump <difference file> <dump file>
e.g. SYSDIFF /dump difffile dumpfile
Type out the dumpfile - Edit your unattended installation file (unattend.txt) and change the
\[Unattended\] section to include
OEMPreinstall=Yes - Copy SYSDIFF.EXE and SYSDIFF.INF to the $OEM$ directory
- Copy difffile to the distribution directory
- If the file does not exist, create the file $OEM$\Cmdlines.txt and insert
the following line
sysdiff /apply /m difffile
where /m makes the changes to the default user profile
Note: Using the /apply method the %systemroot% has to be the same on all machines, i.e. if the diff file was created on a machine with a %systemroot% of d:\winnt\ all machines must be installed to d:\winnt(\[Unattended\] TargetPath)
If this dump file gets to large look at the sysdiff /inf option instead which creates a directory for each application installed and is better for a large number of applications. See the SYSDIFF.HLP file for more information.