Is there an installer step that is only run at the time of first install, and not during update or re-install?
The first time our installation is run, the installer package provides an "install license". (needed by a sub-installation that I cannot control.) This license is not intended for the user and is only needed for the initial installation itself. The license file needs to be removed at the end of the installation, but only the first time the installation is run.
I can't remove the file when performing a repair or update install because this will remove a users valid application license which is provided by the user at first application runtime.
I should mention this license file is an application license, and not an installer license agreement. The sub installation that is called by this installer requires the license to be provided at install time.
Prompting for the license at install time will not work because the person performing the install doesn't have the users license file. The installation license needs to be removed from the target directory so the application will prompt the user for their license at first runtime.
Here's what I'm using to distribute the license file to the target computer.
[Files]
; The license files
Source: "..\Licenses\*"; DestDir: "{tmp}\Coreo Design"; Flags: onlyifdoesntexist