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.
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.
Thanks for your reply, the installer is creating file like shown on picture :
1.png (24.2 KiB) Viewed 4616 times
and i want created file to be lunched with custom action like:
2.png (38.21 KiB) Viewed 4616 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
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.
FOLLOW US
Get the latest news in Application Packaging