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: Condition Install Registry DWORD value returns #
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
‎Nov 30, 2009
11:31 AM
Condition Install Registry DWORD value returns #
:confused:
I'm trying to set an install condition based on a DWORD registry value. I did a System Search to "Store the value in a property and use the property in an install condition.
Example:
MyProperty<10 (Message description).
This does not work because the System Search always adds # in front of the stored value. In turn the Install Condition is never correct because the retrieved registry value is stored with a # in front of the value.
Returns #12 instead of 12.
Does anyone know how to resolve this? Your help is much appreciated.
I'm trying to set an install condition based on a DWORD registry value. I did a System Search to "Store the value in a property and use the property in an install condition.
Example:
MyProperty<10 (Message description).
This does not work because the System Search always adds # in front of the stored value. In turn the Install Condition is never correct because the retrieved registry value is stored with a # in front of the value.
Returns #12 instead of 12.
Does anyone know how to resolve this? Your help is much appreciated.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 01, 2009
07:33 AM
The "#" indicates that the value returned is a DWORD instead of a string value, by design. Change your condition to look for "#12" instead of "12".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2010
11:39 AM
I am also getting a key that is a DWORD, but I am using the value of the key to re-set my default property value as well as using it to set a radio button on one of my dialog boxes.
If the value returned has the # infront of it then the Property is set to this and none of my radio buttons are selected. The value is also used to be written back to the registry. Will the # also be written then?
Is there any way to strip the # off of it or do I have to created 7 custom actions to set the value correctly depending on the #value that is returned?
If the value returned has the # infront of it then the Property is set to this and none of my radio buttons are selected. The value is also used to be written back to the registry. Will the # also be written then?
Is there any way to strip the # off of it or do I have to created 7 custom actions to set the value correctly depending on the #value that is returned?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2010
01:42 PM
i would set the values of your radio buttons to include the #.
your reg entries, i'm assuming, have all been set to property values. initialize the property values with the # prepended.
create all of your reg entries as REGDB_STRING instead of REGDB_DWORD. (i know it sounds funny, but it works) the conversion will happen on the fly.
your reg entries, i'm assuming, have all been set to property values. initialize the property values with the # prepended.
create all of your reg entries as REGDB_STRING instead of REGDB_DWORD. (i know it sounds funny, but it works) the conversion will happen on the fly.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 01, 2010
07:42 AM
I do not really want to fiddle with the reg entries because the application reads these values as well and they are expecting the value to be a DWORD.
So if there is no easy method then it sounds like I'll have to create a custom action that will have to read the key and set the property accordingly.
If anyone already has a custom action to do this I would appreciate hearing from you.
Thanks,
So if there is no easy method then it sounds like I'll have to create a custom action that will have to read the key and set the property accordingly.
If anyone already has a custom action to do this I would appreciate hearing from you.
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 02, 2010
07:05 AM
if you create a string reg entry, and teh value is set to a property, and the property is set to "#2", then the registry value created will be a DWORD with the value "2". It does the conversion on the fly based on the prefix. "#%" as a prefix will create a REG_EXPAND value. "#" as a prefix will create a REG_DWORD value. "#x" as a prefix will create a binary value.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)