Windows Installer Editor Reference
123
Defining an Installation Project
z
Create/update link to refresh data when file changes
Mark this to update the data during compile with any modification you might have
made to the source file. This also marks the check box in the Refresh column on the
Resources page.
See
Refreshing Binary Resources
on page 123.
This check box is unavailable if you have selected a resource with an unspecified file
name.
Note
You can create or remove this link later, by marking or clearing the check box in the
Refresh column on the Resources page.
See also:
Managing Binary Resources
on page 121
Refreshing Binary Resources
When you mark a binary resource to be refreshed, you create a link between the binary
data in the installation and its source file. As a result, each time you compile, the binary
data is updated with any changes you might have made to the source file. In a project
file (.WSI), the source file for a binary resource marked to be refreshed stays outside
the project file, and therefore does not increase the size of the .WSI.
To have a binary resource refreshed
Do one of the following:
z
Mark the corresponding check box in the Refresh column on the Resources page.
z
Mark the Create/update link to refresh data when file changes check box on
the Resource Details dialog box.
You can only refresh binary resources with known source files. If you try to mark the
Refresh check box for a resource whose source file is shown as unspecified, you are
prompted to export the data to a new source file.
To resolve compile errors for binary resources that appear in red
If a binary resource marked to be refreshed appears in red, with question marks in the
Last Modified and Size columns, the name or the location of its source file has changed.
To compile without binary file errors, do one of the following:
z
Use the Resource Details dialog box to update the path for the source file.
z
Clear the Refresh check box and use the existing entry for the resource in the Binary
table.
If an error message appears when you try to clear the Refresh check box, it means
that the Binary table does not have an entry for this resource. Example: This can
happen if you’re working with a .WSI and the source file was changed while the
project file was closed. In this case, you must use the Resource Details dialog box
and set a source file for the binary resource, if you don’t want to delete it.
See:
Adding Binary Resources
on page 122