I created a Basic MSI installer project with InstallShield 2016 professional using the project assistant. I did not created any components/features (just the deafulkt features has been created). The installer should run a console application first (I added as part of the installer, but it won't be installed) and, if no errors arise, simply copy a WPF application (DLLs and .exe) to the client location.
Ideally the steps would be, after the interview dialogs proposed:
- Prompt the used if he/she want to proceed
- If [no] close the process, if [yes], display a custom dialog accepting three fields for a SQL connection string
- Then, with the given parameters as input, run the console app. The console app just runs some SQL scripts, but it will not be installed and it is part of the installer
- After this step (how can I check it is finished and no errors occurred?) copy the files (wpf .exe and DLLs) as set in the project assistant.
In the documentation I read that with custom actions it is possible to run executables, but I cannot understand or find details on how to pass parameters (except from command line) to the console application or to get the final status produced by the console application.
Can anyone suggest me how can I achieve those steps?
UPDATE
In InstallShield it is possible to create properties among custom actions and then call those values like: [PropertyName] in other places where needed.
I could do this to add the three properties for the executable command line parameters: i=[DB_CONN_INSTANCE_NAME] u=[DB_CONN_USER_NAME] p=[DB_CONN_PWD]