ReynoldsL05
Posts: 19
Joined: Fri Oct 11, 2024 11:41 am

Ensure file exists in temp folder during uninstall

I am trying to execute a file stored in the Temporary folder using a "Launch installed file" custom action during uninstallation, however the file is deleted by the Remove Resources action and not added back by the Add resources action during the uninstallation, resulting in the file not being found and an error occurring.
Is there a way to ensure that the file is located in the temporary folder for when I reference it during the uninstallation process?
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Ensure file exists in temp folder during uninstall

Hello and welcome to our forums,

Have you added the file as a temp file or as a regular file in the Temp folder?

The file might be removed by the v1 uninstall.

Can you please send us the .AIP (setup project) file by email to support at advancedinstaller dot com and a test case which we can follow so we can further investigate this?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ReynoldsL05
Posts: 19
Joined: Fri Oct 11, 2024 11:41 am

Re: Ensure file exists in temp folder during uninstall

I have them setup as regular files stored in the temp folder
If I have them setup as temporary files, they do not seem to be accessible in the file selection for custom actions

EDIT: Cancel that, have worked it out
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Ensure file exists in temp folder during uninstall

Hello,

Thank you for following up on this.

I'm glad to hear that everything is now functioning as expected.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”