Hello,
Is there a way to leave temporary files indefinitely?
That's not the role of a temporary file. By definition, unlike regular files or resources, "Temporary Files" are copied on the target machine at the beginning of the installation and are deleted at the end of it, ensuring you have access to them throughout the entire install process.
A similar functionality can be achieved by using persistent properties. If you enable "Set persistent property" option for a property defined in the
Install Parameters page, the property will be stored in the registry and available in maintenance mode (repair, uninstall, etc.).
Also, you may find the
How do I uninstall another MSI package when my application is uninstalled? article helpful.
All the best,
Mihai