I'm trying to solve the same issue as in my previous messages: makes sure that the application can actually be installed because the installer will be unable to find out if the files in the destination folder are locked or not.
Since AI doesn't support selecting in which order the files are deployed, I'm going for a fallback solution: checking if some of the files are locked directly.
I have first tried writing a small Dll that would do this. unfortunately, there seems to be no way to properly define the dll's signature and what parameters to pass to it. So, I switched to and executable that takes a parameter at the command-line.
And there I'm stuck: the help file description is obviously for a different version of the action (it mentions running a dll which is not available) and does not mention the option I'm interested in at all: "fail installation if custom action returns an error".
So: how could you please describe how an executable could:
- Take the destination path ([APPPATH]) as parameter
- Returns either success or error
- Do that after the user has selected a destination but before the installer has started copying files.
- In case of errror, fails with a custom message (ideally, it should be a "try again/cancel" message but I'll settle for failing with an error)
All that using AI 13.7 with a "pro" project.
Thanks,
stephane
FOLLOW US
Get the latest news in Application Packaging