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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: set registry action - decimal not hex?
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 08, 2010
03:16 PM
set registry action - decimal not hex?
Hi folks,
I am trying to put a decimal number into the Windows registry as a DWORD, but the number (ex: 3000) gets put in as 0x3000 not 3000.
Should I expect this? Will I have to convert my decimal numbers to hex before calling this action? Is there some other simple way to get it to do what I want?
Thanks in advance,
- john
I am trying to put a decimal number into the Windows registry as a DWORD, but the number (ex: 3000) gets put in as 0x3000 not 3000.
Should I expect this? Will I have to convert my decimal numbers to hex before calling this action? Is there some other simple way to get it to do what I want?
Thanks in advance,
- john
(4) Replies
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 08, 2010
09:54 PM
Directly type BB8.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2010
03:10 PM
Kevin - I have absolutely no idea what you meant here.
For the record, I wrote some custom code to send in the decimal value and return it as hex. I then use this new value to send to the registry.
For the record, I wrote some custom code to send in the decimal value and return it as hex. I then use this new value to send to the registry.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2010
03:29 PM
BB8 in hex is 3000 in decimal: http://www.easycalculation.com/hex-converter.php
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2010
12:54 PM
wow... that so missed the point.
Let me restate it:
for my installer, a user can specify a value in the GUI portion of the install. They type the number in decimal.
If I write it out to the registry as a DWORD, that decimal value gets written as hex, not decimal.
I was looking for a way to convert the number from a decimal to hex number prior to writing it to the registery.
Absent of a way of installanywhere doing the work, I have created a custom action to convert the number myself.
This seems pretty straightforward, thus I assumed it was me.
Let me restate it:
for my installer, a user can specify a value in the GUI portion of the install. They type the number in decimal.
If I write it out to the registry as a DWORD, that decimal value gets written as hex, not decimal.
I was looking for a way to convert the number from a decimal to hex number prior to writing it to the registery.
Absent of a way of installanywhere doing the work, I have created a custom action to convert the number myself.
This seems pretty straightforward, thus I assumed it was me.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)