Temporary File in [APPDIR] - Advanced Installer Community
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Temporary File in [APPDIR]

I created a Temporary File that was placed into Temporary Folder. Then I drag and dropped it on Application Folder because I need to run with others files dependencies that are into [APPDIR] path.
If I install my app at C: it works. But installing at D: the temporary file is placed at C:, not at D:.
I'm using version 12.7.2.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Temporary File in [APPDIR]

Hello,

Please note that temporary files are copied during "CostFinalize" at the begining of the installation, before "FolderDlg" is shown and are removed at the end of the installation.

The purpose of our temporary files feature is to copy these files early in the installation process, before the other resources are installed.

Could you send us your .AIP project to support at advancedinstaller dot com along with more details regarding your scenario?

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Re: Temporary File in [APPDIR]

If temporary files are copied before the folder dialog, than it does not serve to my case.
Other question: If I include to temporary folder one file that already is used in App Folder it will be duplicated in installer file increasing its final size?
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Temporary File in [APPDIR]

Hello,
Other question: If I include to temporary folder one file that already is used in App Folder it will be duplicated in installer file increasing its final size?
The two references of the same file in the in the project will be treated as two different files. The size of the package will reflect both files (the temporary file and the normal file).

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digocesar
Posts: 38
Joined: Thu Dec 03, 2015 12:26 pm

Re: Temporary File in [APPDIR]

Ok.
Then the better solution to me is a custom action to delete the file from App Folder at end of installation.
Best regards,
Rodrigo
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Temporary File in [APPDIR]

Hello,

Yes, the solution you've mentioned seems fine for your scenario.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”