Sangam
Posts: 25
Joined: Thu Sep 27, 2012 7:33 am

Problem to use feature based option in package.

Hi all,
I have created one package having three feature based .msi .
First.msi is installed with full UI and remaining 2 are installed in silent mode.
If first.msi installed successfully then it will create one .txt file at spcific location and during second.msi installation
i have created one search condition which check for that .txt file if file founds then second.msi get installed otherwise it will terminate the installation of second.msi.
It works fine but the problem is during package installation if first.msi get fails then second.msi also cant install.
But package installation UI shows that it(Package) installs successfully.
how to stop the installation of Package if search condition of second.msi get fails ????
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem to use feature based option in package.

Hi,

If you want to stop the installation of the main package based on the installation of your second feature-based MSI you can follow the steps below:
- create the VBScript custom action described in the how to Abort the Install on message box response thread and place it below the "Install Execution Stage->Preparing" action group
- in the "Condition" text field of this custom action write a condition like this: !SecondFeature (where "SecondFeature" is the identifier of your second feature-based MSI. You can find it in the Organization page if you select that feature)

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”