Say I have two components A and B. Files of A is included in the the installer, B is to unzip a zip file. Before installing B but after installing A I'd like to prompt the user to specify the location of the zip file. It could be in a different directory or on a different DVD. So I'd like to prompt a "directory" parameter with the following message: "Either put in the 2nd DVD or point to where the zip files are located" the user then can change it to a different directory or simply swap the dvd to continue. Can I do that? Thanks,
asked 09 Jun '12, 19:52
I don't think that you can do this, unless you split your two components into separate installers.
Basically, the component B installer could be called in the postInstallationActionList of the component A installer, using a runProgram action. Then, the component B installer could prompt for the location of the zip file or insert the 2nd DVD, using component B's parameters. Would that work for you?
Otherwise, all components need to prompt for their parameters before installation. Do you really have to wait for component A to be installed? Or, do you just require that component A is selected, as well? If the latter is true, then just use a componentSelectionValidationActionList.
answered 10 Jun '12, 15:51
You can use actions after component A to show a dialog. However, showing a directoryParameter dialog is not possible. Usually users expect to enter all the information before installation starts - not during the installation. So unless you explicitly need to show it during installation, it is recommended to show it as part of parameters.
What you can do is what DevHopeful_2012 has recommended - create another installer to show the prompt dialog. You can modify the welcome text of the second installer to explain what is needed and then show a directoryParameter that stores the chosen location in a file:
You can then invoke the second installer with
Also, if your installer is running from a DVD, changing the DVD may crash the installer on some platforms, especially Windows.
answered 11 Jun '12, 03:49