This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: how the features are displaying in feature tree? - important, pls suggest
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2009
08:36 AM
how the features are displaying in feature tree? - important, pls suggest
Hi,
Can anyone tell me how the features are displaying in feature tree in MODIFY?
eg:-
Feature - A
Feature - B
How the installer knows Feautre-B is installed or not(to display Feautre-B as selected or unselected in feature tree)
My issue:-
Eventhough Feature-B is installed, in maintenance the feature tree is showing Feature-B as not installed(unselected).....
how to resolve this issue?
Can anyone tell me how the features are displaying in feature tree in MODIFY?
eg:-
Feature - A
Feature - B
How the installer knows Feautre-B is installed or not(to display Feautre-B as selected or unselected in feature tree)
My issue:-
Eventhough Feature-B is installed, in maintenance the feature tree is showing Feature-B as not installed(unselected).....
how to resolve this issue?
(10) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2009
11:32 AM
What project type are you working with, Basic MSI, InstallScript MSI, or pure InstallScript? This makes a difference as each project type handles feature registration differently.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 24, 2009
12:01 AM
Hi joshstechnij,
Thanks for your replay.... I am working on Installscript MSI project....
Thanks for your replay.... I am working on Installscript MSI project....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 24, 2009
04:14 PM
InstallScript MSI manages feature states similar to pure InstallScript projects. On install, feature states are stored in the InstallScript log created in C:\Program Files\InstallShield Installation Information\{ProductCode}\setup.ilg. During initialization in maintenance mode, the feature states are read back from the log.
If you are able to reproduce this behavior on the machine InstallShield is installed on, you can used the InstallScript log viewer (Tools->InstallScript->Log File Viewer) to open an view the information stored in the log.
If you are able to reproduce this behavior on the machine InstallShield is installed on, you can used the InstallScript log viewer (Tools->InstallScript->Log File Viewer) to open an view the information stored in the log.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
01:59 AM
joshstechnij,
Thanks for your replay....
I verified the .log file...
Observation: (setup.ilg is not updating in Maintenance - after MODIFY)
+ After first installation setup.ilg is showing correct status as Feautre-A installed and Feautre-B not installed)
+ After MODIFY, setup.ilg is not showing the updated status as Feautre-B also installed(there is no change in the setup.ilg's modified time)...
BTW... this project is a upgraded project from IS12 to IS2009
Thanks for your replay....
I verified the .log file...
Observation: (setup.ilg is not updating in Maintenance - after MODIFY)
+ After first installation setup.ilg is showing correct status as Feautre-A installed and Feautre-B not installed)
+ After MODIFY, setup.ilg is not showing the updated status as Feautre-B also installed(there is no change in the setup.ilg's modified time)...
BTW... this project is a upgraded project from IS12 to IS2009
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
12:20 PM
Hi,
If I put any statement before the following lines(atleast a Delay() statement) will update the setup.ilg....
switch(nType)
case REMOVEALL: FeatureRemoveAll();
case REPAIR: FeatureReinstall();
endswitch;
but i have to write manual script to uninstall the files if a feature is unselected(in MODIFY)....
i dont know why setup.ilg updation is not happening and
i dont know why uninstallation is not happening....
can anyone please help me out....
Thanks in advance....
If I put any statement before the following lines(atleast a Delay() statement) will update the setup.ilg....
switch(nType)
case REMOVEALL: FeatureRemoveAll();
case REPAIR: FeatureReinstall();
endswitch;
but i have to write manual script to uninstall the files if a feature is unselected(in MODIFY)....
i dont know why setup.ilg updation is not happening and
i dont know why uninstallation is not happening....
can anyone please help me out....
Thanks in advance....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
12:24 PM
What changes have been made to script events in this project such as OnMaintUIBefore? Can you reproduce this behavior with a sample project that contains a few features and a default setup.rul file (I've tried this in a sample and I am unable to reproduce any behavior with the setup log not updating on maintenance mode)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
12:29 PM
joshstechnij,
i too tried with a dummy project but i am unable to reproduce the issue...
As i told u, this project is a upgraded project from IS12 to IS2009, so is there anything that i have to change?
eg:-
In IS 12 default code is:
switch(nType)
case REMOVEALL: FeatureRemoveAll();
case REPAIR: FeatureReinstall();
endswitch;
but in IS 2009 it is ComponentRemoveAll()
like that.. is there any script or settings that are affecting the functionality?
i too tried with a dummy project but i am unable to reproduce the issue...
As i told u, this project is a upgraded project from IS12 to IS2009, so is there anything that i have to change?
eg:-
In IS 12 default code is:
switch(nType)
case REMOVEALL: FeatureRemoveAll();
case REPAIR: FeatureReinstall();
endswitch;
but in IS 2009 it is ComponentRemoveAll()
like that.. is there any script or settings that are affecting the functionality?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
12:38 PM
ComponentRemoveAll and ComponentReinstall are called by their Feature equivalents (FeatureRemoveAll and FeatureReinstall) so the functionality is the same.
Other than Enable/Disable(LOGGING) calls, there really any options available that can affect whether or not the InstallScript engine logs changes during the install.
Is this project being installed on a machine that has a build of the IS 12 copy of the project installed? If so, does installing the project and then running maintenance mode on a clean machine change the behavior?
Other than Enable/Disable(LOGGING) calls, there really any options available that can affect whether or not the InstallScript engine logs changes during the install.
Is this project being installed on a machine that has a build of the IS 12 copy of the project installed? If so, does installing the project and then running maintenance mode on a clean machine change the behavior?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
01:10 PM
joshstechnij,
I created a dummy project in IS12 and upgraded to IS2009... that project also working fine...
My actual project which is causing issue is updating .ilg file after adding a Delay() ....
But can you tell me why uninstallation is not happening when a feature is unselected????
what are all the cases that will affect uninstallation?
Even REPAIR also replacing some edited files(like .config files)...
how can i review my code to find the issue...?
I created a dummy project in IS12 and upgraded to IS2009... that project also working fine...
My actual project which is causing issue is updating .ilg file after adding a Delay() ....
But can you tell me why uninstallation is not happening when a feature is unselected????
what are all the cases that will affect uninstallation?
Even REPAIR also replacing some edited files(like .config files)...
how can i review my code to find the issue...?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
03:59 PM
The easiest thing to do is to start removing code from the project's setup.rul (starting with OnMaintUIBefore) until the issue no longer reproduces. Then, re-add the code last removed to ensure the issue can be reproduced again, and start isolating the issue based in that code.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)