I have an executable that needs to be executed as part of the installation process. The executable requires an external resource file, that needs to be included in the installation somehow. After the executable has finished executing, I need to display a few more custom dialogs. The executable is a database synchronisation tool, and the resource file it requires is an XML representation of the database at the time of the build. Once the database has been brought up to date, the user can then write some initialization settings to the database using the dialogs that follow.
I have tried tackling this from two directions, with varying degrees of success but neither really doing what I want.
First, I tried doing this all in the setup process, between the Welcome screen and the Progress dialog. I created a "Launch attached file" non-sequenced custom action, and called the action on the database configuration dialog. The application launched fine, but the resource file was not available so it could not continue.
Then I managed to get a dialog between the progress dialog and the exit dialog, by adding a new sequenced dialog after the Progress dialog - this seems to be the only way to get anything between progress and completion. Not ideal, but I can live with it. I then included the executable and its resource file into the Common Files feature, and changed the custom action to "Launch installed file". This does something wierd. After the progress dialog, I get the new dialog, which is currently empty. Click Next, and the database configuration dialog comes up. Spot on. Click on the button to launch the database updater, and it jumps to the Exit screen. Click on Close on the exit screen, and nothing happens. Click on Close another 2 times, and the database updater appears, with its resource file intact. Cancel out of the database updater, and it returned to the database configuration screen. Click on the Configure button again, and this time the updater launches immediately without doing anything funny.
This is bizarre. I can't see why it is jumping to the exit screen. This is the ideal place to do the settings, after installation but before completion, preferably without the redundant in-sequence dialog but I can do something clever with that, but I'm hoping you can guide in the right direction to get this fixed. I have reproduced this same behaviour using "Launch attached file" and using a different executable, with the same results.
I have attached the .aip file. Please let me know if there is any further information you require.
Thanks,
Peter
FOLLOW US
Get the latest news in Application Packaging