Selbstinstallierende XP-CD erstellen (Inkl. Treiber,SoftwarHier noch ein umfangreicher Thread mit XP Installationstipps und Anpassungsmöglichkeiten ...
Selbstinstallierende XP-CD erstellen (Inkl. Treiber,Software,RegTweaks,..)
http://www.digital-inn.de/windows-xp-sonstiges/26025-tutorial-selbstinstallierende-xp-cd-erstellen-inkl-treiber-software-regtweaks.html#post110157
... kleiner Auszug bzw. einige Grundinformationen ...
- Sysprep.inf
Informationsdatei für eine Sysprep-basierende Installation.
- TxtSetup.sif
Treiberinformationen für das Textmode Setup
- DosNet.inf
Treiberinformationen
- Winnt.sif
Die Basisdatei für jede Unattended Installation.
- Unattend.txt
Vom Inhalt her fast identisch mit der winnt.sif.
Diese Datei dient zum Aufsühren eines Unattended Setups
von der Festplatte anstatt von CD.
- SvcPack.inf
Diese Datei wird für die Installation von ServicePacks verwendet
und während der T-13 Stage des Setups abgearbeitet
- SysOc.inf
In der sysoc.inf Datei wird festgelegt welche Windowskomponenten
unter Software angezeigt werden.
- CmdLines.txt
Wird automatisch während der T-12 Stage des Setups abgearbeitet
- Batchfiles
Die Autoexec.bat war die wohl bekannteste Batchdatei zu Zeiten von DOS.
In Windows haben diese nun die Endung cmd (“users.cmd“).
(Was viele nicht wissen ist das es die Datei autoexec.bat auch unter XP
noch gibt. Nur ist sie standardmäßig deaktivert)
HIVE
Versteckt unter den hunderten von Dateien im i386 Verzeichnis
befinden sich Dateien die ganz am Anfang des Textmode Setups
geladen werden. Es gibt insgesamt Fünf Dateien.
Und alle beginnen mit “HIVE“.
- HiveCls.inf
Diese Datei bestimmt den Inhalt des Schlüssels HKLM\SOFTWARE\Classes (HKCR)
Wenn ihr Dateiverknüpfungen ändern wollt könnt ihr das hier tun.
- HiveDef.inf
Diese Datei bestimmt den Inhalt des Schlüssels HKU\.DEFAULT.
Weiter werden auch die Einstellungen des Default User Profiles
bestimmt.
(Dieser Schlüssel, auch wenn es oft behauptet wird, beinhaltet nicht
die Default User Einstellungen! Änderungen in dem Schlüssel in einem
bereits installiertem XP werden nicht dem Default User Profil hinzugefügt!)
- HiveSft.inf
Diese Datei bestimmt den Inhalt des Schlüssels HKLM\SOFTWARE
- HiveSys.inf
Diese Datei bestimmt den Inhalt des Schlüssels HKLM\SYSTEM
- HiveUsd.inf
Diese Datei dürft ihr getrost ignorieren.
Warum den Hive editieren? Nun.
Der einzige Grund warum man direkt den Hive editiert
anstatt die anderen Möglichkeiten zu nutzen liegt in der Beständigkeit
und Unsichtbarkeit der vorgenommenen Einstellungen.
Anstatt eine Registrydatei auf der CD zu platzieren die jeder einfach
löschen oder anpassen, oder zumindest sehr einfach entdecken,
könnte ist das mit dem Inhalt des Hive nicht so einfach.
Und sämtliche Einstellungen sind von Begin des Setups vorhanden.
Zum einen muss man erstmal wissen das es diese Dateien gibt.
Und wozu sie dienen. Das bringt einem aber herzlich wenig wenn
der Ersteller der CD eigene Einträge hinzugefügt hat
(Sofern die Einträge nicht schön sortiert mit Beschreibung am Ende
der Datei eingefügt wurden).
Öffnet man die Datei HiveDef.Inf in einem Editor findet man fast ganz unten folgende Zeilen:
TEMP_DIR="%USERPROFILE%\Lokale Einstellungen\Temp"
…
U_SHELL_FOLDERS_APPDATA="%USERPROFILE%\Anwendungsdaten"
U_SHELL_FOLDERS_DESKTOP="%USERPROFILE%\Desktop"
U_SHELL_FOLDERS_FAVORITES="%USERPROFILE%\Favoriten"
U_SHELL_FOLDERS_NETHOOD="%USERPROFILE%\Netzwerkumgebung"
U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\Eigene Dateien"
U_SHELL_FOLDERS_PRINTHOOD="%USERPROFILE%\Druckumgebung"
U_SHELL_FOLDERS_PROGRAMS="%USERPROFILE%\Startmenü\Programme"
U_SHELL_FOLDERS_RECENT="%USERPROFILE%\Recent"
U_SHELL_FOLDERS_SENDTO="%USERPROFILE%\SendTo"
U_SHELL_FOLDERS_START_MENU="%USERPROFILE%\Startmenü"
U_SHELL_FOLDERS_STARTUP="%USERPROFILE%\Startmenü\Programme\Autostart"
U_SHELL_FOLDERS_TEMPLATES="%USERPROFILE%\Vorlagen"
U_SHELL_FOLDERS_COOKIES="%USERPROFILE%\Cookies"
U_SHELL_FOLDERS_MYPICTURES="%USERPROFILE%\Eigene Dateien\Eigene Bilder"
U_SHELL_FOLDERS_LOCAL_SETTINGS="%USERPROFILE%\Lokale Einstellungen"
U_SHELL_FOLDERS_LOCAL_APPDATA="%USERPROFILE%\Lokale Einstellungen\Anwendungsdaten"
U_SHELL_FOLDERS_CACHE="%USERPROFILE%\Lokale Einstellungen\Temporary Internet Files"
U_SHELL_FOLDERS_HISTORY="%USERPROFILE%\Verlauf"
Hier kann man nun ganz frei eigene Pfade bestimmen. Bei der Vergabe
von Variablen solltet ihr nur Variablen verwenden die auch vorhanden sind (Weiter unten gelistet).
Wird zum Beispiel die Variable %USERPROFILE% durch
%SYSTEMDRIVE% ersetzt werden die angegebenen Verzeichnisse
direkt auf der Systempartition erstellt.
Durch eine solche Änderung gäbe es keine getrennten Verzeichnisse
mehr. Jeder erstellte Benutzer würde seine Dateien in
dem gleichen Verzeichnis wie alle anderen ablegen.
Und Windows meckert noch nicht einmal!
Das sollte als Anleitung für den Hive reichen.
Jetzt folgt noch eine Liste der Variablen:
Table 1: Environment Variables
ALLUSERSPROFILE
Local returns the location of the All Users Profile.
APPDATA
Local returns the location where applications store data by default.
CD
Local returns the current directory string.
CMDCMDLINE
Local returns the exact command line used to start the current cmd.exe.
CMDEXTVERSION
System returns the version number of the current Command Processor Extensions.
COMPUTERNAME
System returns the name of the computer.
COMSPEC
System returns the exact path to the command shell executable.
DATE
System returns the current date. This variable uses the same format as the date /t command. Cmd.exe generates this
variable. For more information about the date command, see the Date command.
ERRORLEVEL
System returns the error code of the most recently used command. A non-0 value usually indicates an error.
HOMEDRIVE
System returns which local workstation drive letter is connected to the user's home directory. This variable is set based on the
value of the home directory. The user's home directory is specified in Local Users and Groups.
HOMEPATH
System returns the full path of the user's home directory. This variable is set based on the value of the home directory. The
user's home directory is specified in Local Users and Groups.
HOMESHARE
System returns the network path to the user's shared home directory. This variable is set based on the value of the home
directory. The user's home directory is specified in Local Users and Groups.
LOGONSEVER
Local returns the name of the domain controller that validated the current logon session.
NUMBER_OF_PROCESSORS
System specifies the number of processors installed on the computer.
OS
System returns the OS name. Windows XP and Windows 2000 display the OS as Windows_NT.
PATH
System specifies the search path for executable files.
PATHEXT
System returns a list of the file extensions that the OS considers to be executable.
PROCESSOR_ARCHITECTURE
System returns the processor's chip architecture. Values: x86, IA64.
PROCESSOR_IDENTFIER
System returns a description of the processor.
PROCESSOR_LEVEL
System returns the model number of the computer's processor.
PROCESSOR_REVISION
System returns the revision number of the processor.
PROMPT
Local returns the command-prompt settings for the current interpreter. Cmd.exe generates this variable.
RANDOM
System returns a random decimal number between 0 and 32767. Cmd.exe generates this variable.
SYSTEMDRIVE
System returns the drive containing the Windows root directory (i.e., the system root).
SYSTEMROOT
System returns the location of the Windows root directory.
TEMP or TMP
System and User return the default temporary directories for applications that are available to users who are currently logged
on. Some applications require TEMP and others require TMP.
TIME
System returns the current time. This variable uses the same format as the time /t command. Cmd.exe generates this
variable. For more information about the time command, see the Time command.
USERDOMAIN
Local returns the name of the domain that contains the user's account.
USERNAME
Local returns the name of the user currently logged on.
USERPROFILE
Local returns the location of the profile for the current user.
WINDIR
System returns the location of the OS directory