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
- :
- Issue of Properties not cached on install???
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 10, 2012
12:46 PM
Issue of Properties not cached on install???
We have an install that has some public properties that are defaulted to 1 that will enable some custom actions to be triggered. If the admin does not want these custom actions to trigger then they set these 2 properties to 0 and push them to the installer.
Now this works correctly as expected, but we have now ran into an issue where we created a hotfix patch (.msp) for our product that simply only has some file changes and then when we apply this patch it seems that the 2 custom actions that were not triggered in the original install are suddenly triggered in the patch.
Checking it looks like the patch simply used the default values of these properties and therefore triggered these custom actions.
So I would like to know why the patch did not use the cached value of these properties? How do we prevent propeties that were changed from default re-verting back to default on a patch/minoro upgrade?
Any help with this would be appreciated.
Thanks,
Now this works correctly as expected, but we have now ran into an issue where we created a hotfix patch (.msp) for our product that simply only has some file changes and then when we apply this patch it seems that the 2 custom actions that were not triggered in the original install are suddenly triggered in the patch.
Checking it looks like the patch simply used the default values of these properties and therefore triggered these custom actions.
So I would like to know why the patch did not use the cached value of these properties? How do we prevent propeties that were changed from default re-verting back to default on a patch/minoro upgrade?
Any help with this would be appreciated.
Thanks,
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 10, 2012
01:12 PM
Properties in general are not cached. Certain large subsets are (like directory properties with installed components that target the same directory), but arbitrary properties are generally forgotten after the installation completes.
Typically you will want to "remember" these properties in some fashion, for instance by writing them to a registry key and using a system search to retrieve any saved value.
Typically you will want to "remember" these properties in some fashion, for instance by writing them to a registry key and using a system search to retrieve any saved value.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)