Auto Increment DWORD

(imported topic written by netmeister91)

Trying to come up with way to take dword value and add 1 to it and save the updated value.

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\PatchVersion\BlockPoint

" “PostBuildModuleCount”=dword:(((value “PostBuildModuleCount” of key “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\PatchVersion\BlockPoint” of registry) as integer )+1)

runs without an error in the action debugger but the registry value “PostBuildModuleCount” does not get updated.

(imported comment written by NoahSalzman)

The debugger doesn’t check the minutia of the regset command for errors… it’s just looking at the general structure. For instance, you can put whatever text you want after the dword: and it will still work.

The main problem with your command is that you are using () instead of {} for the Relevance substitution. You probably want this:

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\PatchVersion\BlockPoint

" “PostBuildModuleCount”=dword:{((value “PostBuildModuleCount” of key “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\PatchVersion\BlockPoint” of registry) as integer )+1}

(imported comment written by netmeister91)

Trying to come up with a way to take a sting that is hex numbers and do some math to it. “ff” as hexidecimal returns 6666 not 255 I understand why f has a value of 66 but want it to have value of 15.

(imported comment written by BenKus)

This might help:

q: (hexadecimal integer “ff”)
A: 255

Q: 255 as hexadecimal
A: ff

q: ((hexadecimal integer “ff”) +1) as hexadecimal
A: 100