UninstallData.AddItem

UninstallData.AddItem ( 

number ItemType,

table  ItemData )

Example 1

UninstallData.AddItem(UNINDATA_MAIN, {Name="RegInfoPath", Value="c:\\some_folder\\reg_info.enc"});

Adds the item "RegInfoPath" to the uninstall configuration file with a path as the value into the UNINDATA_MAIN section of the file.

Example 2

UninstallData.AddItem(nItemType, tItemData);

Adds the values contained in the table "tItemData" into the section contained in value "nItemType" to the uninstall configuration file.

Example 3

-- Assign table values
tbl_values = {
Filename = SessionVar.Expand("%SourceFolder%\\globals.dll"),
DecrementUsageCount = true,
UnregisterCOM = false,
UnregisterFont = false,
BackupFile = SessionVar.Expand("%AppFolder%\\Backups\\globals_dll.bak")
}

-- Add a Data item to the uninstall data file based on the above table values
UninstallData.AddItem(UNINDATA_FILES, tbl_values);

Adds the file globals.dll to the uninstall data file, along with the location of the backup file.

Note: You must manually back up the file, setup factory does not automatically do this for you.

See also:  Related Actions