banner

[Uninstall]

Answer File = Unattend.txt

The [Uninstall] section contains entries for allowing end users who upgrade to Windows XP to remove the operating system if they encounter problems.

This section header instructs Setup to create a backup file of the end user's existing operating system. You must specify this section to make the Uninstall feature available.

Important

Consider the following restrictions with the Uninstall feature:

For more information on upgrades from Windows 98, Windows 98 Second Edition, or Windows Millennium Edition, see [Win9xUpg].

Entry Description
DisableCompression Specifies whether to compress the files in Backup.cab.
EnableBackup Specifies whether to create a backup file (Backup.cab) for removing Windows XP Home Edition or Windows XP Professional.
PathForBackup Specifies the location of the backup files of the previous Windows 98, Windows 98 Second Edition, or Windows Millennium Edition.

Sample

This sample demonstrates one use of the [Uninstall] section of Unattend.txt.

[Uninstall]
DisableCompression = Yes
EnableBackup = Yes
PathForBackup = "%SYSTEMDRIVE%\Backup"

DisableCompression

Specifies whether to compress the files in Backup.cab.

Syntax DisableCompression = Yes | No | Auto
Values Yes

Does not compress the backup files in Backup.cab, located in the folder specified by PathForBackup. This setting speeds up an upgrade to Windows XP Home Edition or Windows XP Professional.

No

Compresses the files in Backup.cab to approximately 40 percent of their original size.

Auto

Checks the available disk space. If there is sufficient disk space, do not compress the backup files in Backup.cab. If there is not enough disk space for all of these uncompressed files, then compress the files when storing them in Backup.cab.

Default Value Auto
Example
DisableCompression = Yes
Comments The [Uninstall.DiskSpaceEstimation] section in Win9xupg.inf controls the compression factor. If EnableBackup = No, Setup ignores this entry.

icon Return to top

EnableBackup

Specifies whether to create a backup file (Backup.cab) for removing Windows XP Home Edition or Windows XP Professional.

Syntax EnableBackup = Yes | No
Values Yes

Creates Backup.cab in the folder specified by PathForBackup.

No

Does not create Backup.cab.

Default Value Yes
Example
EnableBackup = Yes

icon Return to top

PathForBackup

Specifies the location of the backup files of the previous Windows 98, Windows 98 Second Edition, or Windows Millennium Edition.

Syntax PathForBackup = path_for_backup_files
Values path_for_backup_files
Default Value system_drive:\Undo
Example
PathForBackup = "%SYSTEMDRIVE%\Backup"
Comments

Setup accesses these files if the end user chooses to remove Windows XP Home Edition or Windows XP Professional. In the PathForBackup entry you must specify a location on the computer's hard disk. You cannot specify a network server share or a removable mass-storage device. Enclose path_for_backup_files in quotation marks if it is a long file name.

If EnableBackup = No, Setup ignores this entry.

icon Return to top