cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

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
Labels (1)
0 Kudos
4 Replies
Highlighted
Not applicable

Re: set registry action - decimal not hex?

Directly type BB8.
0 Kudos
Highlighted
Pilgrim

Re: set registry action - decimal not hex?

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.
0 Kudos
Highlighted
Flexera beginner

Re: set registry action - decimal not hex?

BB8 in hex is 3000 in decimal: http://www.easycalculation.com/hex-converter.php
0 Kudos
Highlighted
Pilgrim

Re: set registry action - decimal not hex?

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.
0 Kudos