PDA

View Full Version : How to make two 'install' in 'Installation Sequence'?



321tseug
03-27-2006, 10:19 PM
Hello,

'Installation Designer' -> 'Behavior and Logic' -> 'Sequences'

In the sequences tree, I want to do two 'Sequence'.

what I want to do as below:
1. preInstall - ask the user some questions and gether the information.
2. install - install some files
3. preinstall - ask the user some question and gather the information.
4. install - install others files
5. postInstall.

I have no idea how to 'insert' a 'preInstall' or a 'install'.
how could i solve the problem? or any other way to do two install sequence in one installation?

Thanks in advance for the help.

MotoJason
03-28-2006, 05:38 PM
You can break the installs into two features. Then you can ask your questions of the user however you want AskYesNo() or some type of list checkboxes. Then set the FeatureSelectItem for the correct feature based on your user's answers.

321tseug
03-28-2006, 11:13 PM
Thanks for your reply.

Did you meant that :
1.preinstall
1.1 feature dialog:let user to select feature A or B
1.1 if user selected A, ask some questions of A
1.2 if user selected B, ask some questions of B

2.install
2.1 if user selected A, install files of A
2.2 if user selected B, install files of B

3. postinstall

but in my situation the installation install B or not depends on the result of installing of A and questions of A .

1. ask some questions of A
2. install A
3.
if ( installing-A-succeed && some-question-of-A == true ) {
ask-some-question-of-B
install-B
}

I made the installation like this:

preinstall:
1.custom dialog to gather the configuration of A

install:
2.install files of A
3.custom product action to do some script of A

postinstall:
4. custom dialog to gather the configuration of B
5. custom wizard actions to copy files and do some script of B

are there any other ways to make this easy to solve the problem?