Ovia

Creating User defined properties and enabling it

Hi ,
Anybody there please help me out with this !!!!!
1.Can You Please let me know how do you set up user defined values for the features in the install parameter page dynamically without using complete option .That is if i have feature say test 1 , how do i enable this test 1 dynamically .I tried with true ,false and 0,1 but it didn't work so can you please tell me the procedure
2. Then can you tell me how to set registry values for current user and administrator ?I mean it shud also give me option for that .
3.While installing a program in the middle if i need to take some files from the web not from the system how do i do it ?
Please let me know this , it will be of great help.
Thanking You,
Ovia
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi Ovia,

1. To specify dynamically whether a feature should be installed you should do the following:
- choose the feature's install level 4.
- add a condition that depends on a property. Ex: Condition: Feature1; level: 1. Feature1 is a property that is initialized (given a value) at install time.

2. In the "Install parameters" you can select the following "Installation type" options:
- Per User - the application will be available only for the user that installed it.
- Per Machine - the application will be available for all the users of that machine.
- Per Machine/User - the application will be installed "Per Machine" if the user has administrative rights and "Per User" otherwise.

To add a registry entry for the current user create a value in "HKEY_CURRENT_USER" and for the administrator in "HKEY_LOCAL_MACHINE".

3. A prerequisite can be set up to download and install files from a URL.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
Ovia

Hi Mike ,
Thanks for clearing me 2 of my doubts but i'm not clear with this one i.e
1. To specify dynamically whether a feature should be installed ,you asked me do certain things , i tried but cudn't get the concept clear .
* In Install parameter page in properties tab i create a user defined feature called Test 1 say for eg and then wat shud be the value set for that ?
* Then in organisation page if I select the Test1 feature and here wat shud be the install level is it 4 here and then by clicking on conditional tab ,i shud select the Test 1 under user defined and what is the value of level here .I know i'm confusing but i'm sorry abt it , i'm trying my level best to explain you where i'm not clear.
Actually the concept here is I want to add a property named Test 1 in install parameter page and shud give a value for that and then when i come to organisation page and select this Test1 feature what shud be the install level value and after clicking the conditional tab what shud be the value for the Test 1 .So that if i change the value of Test 1 in Install Parameter page the Test1 feature must be enable and disabled accordingly.
Please give me a step by step instruction . Since i'm in the l;earning process i'm forced to take much of your time .
Thanking You ,
Ovia .
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

Please provide us more information on what you are trying to do.

If you just want to let the user specify what features he wants installed just add the "Setup Type" dialog, in the "Dialog" pane.

Mihai
Last edited by Mike on Tue Jul 12, 2005 11:38 am, edited 1 time in total.
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
Ovia

Hi ,
Actually i wud like to know if i create a user defined property in "install Parameter " page called "Test " and here can i set values for this "Test " lwhich is also a feature in "Organisation Page " and then can I dynamically enable or disable through the value given for "Test " in "Install Parameter" Page and go on .
For eg : If i'm creating a "Test" Property in Install Parameter page which is also a feature in Organisation page and can i give value as o,1 or 4 or something like true or false , o ->off, 1 ->On and with this value given here in "Install Parameter" page can i set the feature "Test" in Oraganisation page typical or complete. can you understand now atleast a bit of what i'm trying to do !!
I know its confusing...Ask me if you want further details also ...
Thanking You ,
Ovia.
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

The answer to your question depends on the condition for the feature's installation. You want to decide this dynamically. What are the conditions upon which this decision is to be made?

Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
Ovia

Hi ,
Like if "Test " is true (or watever value have to be given for making it true or enabled ) in Install Parameter page like in Properties tab ,i create one property Name= Test , Value =true(dont know what exactly the value have to be thats what i want you to tell me ) .then when "Test = true" i want the "Test" feature in Organisation page to be shown as disable while installation ,i mean it shud appear as it is in Typical mode
And if i change the value of "Test = False " then it shud go to Complete mode while installation . I mean if i change the values in "Install parameter " page it shud get changed according to the value during installation as typical or custom.
I know it can be done directly but the criteria is with the value given in the "user defined " property it shud act .Hope you understand what i mean.
Thanking you ,
Ovia
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Create a property in the "Install Parameters" tab with the name "IsInstalled" and set it's value to "true".

To condition the installation of your feature go to the "Organization" pane.

Set the "Install Level" field from the "Feature Property" pane to 4.

Click on the [ Conditional ] button. In the "Edit Conditional Levels" window click [ New ] button. Edit the "Condition" field IsInstalled=true and the "Level" field to 1.

At this moment your feature will be installed on an typical installation. If you change the value of the "IsInstalled" property with any other value the feature will be disabled.

Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
Ovia

Hi Mike ,
I did the same it went on perfectly fine for the typical but if i change the value of the "IsInstalled" property to false or 0 its still going on for the typical installation only .I believe after changing the value of "IsInstalled" property the level in "Edit Condition Levels " is still 1 only right .
Is there any other value that can be put other than false or 0 ?
Please clear me out .
Thanking You ,
Ovia
Ovia

Hi Mike ,
Can you please let me know what else could be done to make the feature run in complete mode dynamically ...
thanking you ,
Ovia
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

It doesn't matter what type of installation it appears to go on. You can test that this works by placing two files in two different features and setting one dynamically to level 4. Run the installation and you will see that only one file has been installed.

Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Feature Requests”