Hi,
I am currently evaluating Advanced Installer 4.3 and I run into an issue regarding Temporary Files. What I want to do is to add a temporary script to my application directory that gets executed through a custom action, and then gets deleted once the setup has completed.
However, the behavior I'm experiencing does not allow me to accomplish this. In my AI project I add the script as a temporary file to the application directory. If I now build and execute my package, the temporary file is immediatly copied to the default APPDIR, so this happens before I even had a chance to define a path through the dialog. What also happens is that my temporary file gets removed before the custom actions start, and not at the end of the setup. My custom actions are set to run at "InstallFinalize", and the AI documentation says regarding temporary files:
"They are copied at the beginning of the setup process on the CostFinalize standard action, and removed at the end of the setup after the InstallFinalize standard action."
But this does not seem to be the case. What I want to achieve is that my temporary files do get installed into the application directory that is defined through the dialog, and that they get removed at the very end of the installation, after my custom actions have run. How can I do this?
Thank you for your assistance.
Dennis