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: Can't rename a Feature
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
‎May 30, 2013
10:43 AM
Can't rename a Feature
In an InstallScript project, we've renamed the DefaultFeature to be something else, as well as added a couple of new features, renaming each of those. When we go down to Setup Types, they show up as expected and we can check and uncheck the boxes to include or exclude the features. Looks great.
However, when we build a release, run it, and select "Custom Install", the features appear as Default Feature, NewFeature1, and NewFeature2 - they don't appear as we renamed them, nor as they appear in the project.
What's up with that?
Curt
However, when we build a release, run it, and select "Custom Install", the features appear as Default Feature, NewFeature1, and NewFeature2 - they don't appear as we renamed them, nor as they appear in the project.
What's up with that?
Curt
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2013
12:28 PM
In Setup Design view (or Feature view) on the renamed Feature look at the Display String. That is what you are seeing when the setup is executed. Click on the dot on the right to select a different string or just type in that line.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2013
12:35 PM
The name of the Feature node is an internal name which your script uses to select and interact with the feature. I typically assign a literal and then use that in my code.
#include "literals.h" setup.rul
In literals.h
#define _MY_FEATURE "MyFeature" //this is the name of the feature in the Feature view
_MY_FEATURE is passed to various functions to select or deselect the feature, etc.
In the string table create a string
MY_FEATURE_DISPLAY_NAME "MyFeature"
Click on the feature and set the DisplayName property to MY_FEATURE_DISPLAY_NAME. This is what the user will see.
#include "literals.h" setup.rul
In literals.h
#define _MY_FEATURE "MyFeature" //this is the name of the feature in the Feature view
_MY_FEATURE is passed to various functions to select or deselect the feature, etc.
In the string table create a string
MY_FEATURE_DISPLAY_NAME "MyFeature"
Click on the feature and set the DisplayName property to MY_FEATURE_DISPLAY_NAME. This is what the user will see.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2013
01:17 PM
Oh Man... Could it be any easier to see? What a DUH moment... Thanks, Phill.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2013
02:08 PM
When I create a new Feature that I want to be visible, I also create a MY_FEATUE_DESC description string and a MY_FEATURE_STATUS status string in the same view. You will also find that when you create a Feature a DisplayString is also created using the form ID_String#. When you set the display string you can either rename the string ID or delete that string ID and create a new one with the ID that you prefer.