Missing file - Advanced Installer Community
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Missing file

I have file that is created by installer and not existing in the initial phase, i want to connect this file with custom action, but installer is complaining when building that file is missing, how can i achieve this, should i have an empty file.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Missing file

Hi,

I'm afraid that I do not fully understand your scenario. Can you please give me more details (maybe exemplify)?

In order to have a better view about your problem, you can send me your project or some screenshots with your configuration and the error that you encounter to support at advancedinstaller dot com.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Missing file

Hi,

Thanks for your reply, the installer is creating file like shown on picture :
1.png
1.png (24.2 KiB) Viewed 4615 times
and i want created file to be lunched with custom action like:
2.png
2.png (38.21 KiB) Viewed 4615 times
if i build installer its say that file is missing, so mu question is how can i accomplish to create file and lunch with custom action, if i able later i will comit .aip

regards
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Missing file

Hi,

The error that you get during build is not related to the file that you try to create through the "Text File Update" operation, it is related to a "RunMigrateDb.bat" file that you added to your project, but is not available on the local drive anymore (shown in the screenshot you attached). In order to fix this, you can create it at the path the project search for it or remove it from your project.

On the other hand, please keep in mind that a "Text File Update" cannot be referenced directly in a custom action (e.g. [#RunMigrateDb.bat]) because it has no identifier assigned. In order to reference it, you can use the property related to the folder it is placed into (e.g. [APPDIR]RunMigrateDb.bat).

Also, in order to launch that file, you need to set the custom action to be executed after it has been created. So, you need to place the custom action after the "Add Resources" action group and set the "deferred" with "no impersonation" option for it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Missing file

Thanks for the detailed answer this was what i have asking. thanks again
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Missing file

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”