How can we install merge module conditionally??
Posted 14 February 2001 - 17:35
Can anybody tell me how I can install merge module conditionally?
I am using Installshield Proffesional Windows Installer Edition..and I want to create setup that will give a option to user whether one feature (Merge module) of application should be installed or not. So according to user choice it should be installed or not.
Posted 14 February 2001 - 18:41
Posted 14 February 2001 - 19:05
Your approach is right. I had already tried to apply that. But I am not get appropriate result in Installshield Windows Installer Environment.
In tool,There is one property for feauter called INSTALLLEVEL. If INSTALLLEVEL is higher than some value, set up will not install that feuters. But when it is lower than that value feature will be installed. I tried to set this property run time using Check box control in user dialog box. What i did, I set But INSTALLLEVEL value is no set appropriately.
So this is problem..
Posted 14 February 2001 - 19:45
I understand you to be saying that you are having problems setting the install level at runtime, and that you are using a Check Box control to make the change. I suspect part of the problem may be that InstallLevel is a private property, and so far as I know the only way to change it is by using a SetInstallLevel control event.
You may want to use ORCA or some other MSI editor to take a look at the CheckBox control in your dialog. It must be mapped to a SetInstallLevel event in the ControlEvent Table rather than simply mapping to a SetProperty action. SetProperty, so far as I know, may only be valid for Public properties.
At any rate, if your checkbox control is already mapped to the SetInstallLevel action, then I am out of suggestions for that method.
The other thing to try may be to use the Condition Table to modify the install level of the Feature rather than the install level of the package. Then you can test the value of your checkbox and set the feature install level with a conditional statement. One thing you have to do is to ensure that the checkbox value is set prior to the Cost Finalize action.
Either approach should work if you can get to the underlying tables.
Posted 20 February 2001 - 20:01
What mistake i did is that I set checkbox value after CostFinalize action. So I just put it before that..and I got it work. But plz tell me know how CostFinalize affect this type of situation??
Thanx once again..