conditions in a registry hack

  • Thread starter Thread starter jshee42
  • Start date Start date
J

jshee42

I was wondering if anyone knows if conditions can be built into a
registry hack/entry. I have a important reg hack that needs to be
deployed and I can't get it done without making it conditional. I
think it will work, but I can't seem to get it to work correctly.

[HKEY_USERS\S-1-5-21-746137067-1935655697-1708537768-2223\Software\ORACLE\Discoverer
4\Database]

[HKEY_USERS\S-1-5-21-746137067-1935655697-1708537768-4650\Software\ORACLE\Discoverer
4\Database]

[HKEY_USERS\S-1-5-21-746137067-1935655697-1708537768-8316\Software\ORACLE\Discoverer
4\Database]

These are the keys I'm trying to modify/add to my user's registry. I
have a slew of string values that need to be added, but, like I've
said, it doesn't seem to work correctly. I've looked around a few
places, but I don't seem to see anything related to what I'm looking
for. Does anyone here know how to do something like this?

Here are a few of the string values I'm attempting to change/add as
well.

"UEUL_MFG_USER_PRD"="DISCOVERER"
"UEUL_CS_USER_PRD"="DISCOVERER"
"UEUL_INV_USER_PRD"="DISCOVERER"
"UEUL_FIN_USER_PRD"="DISCOVERER"
"UEUL_MKT_USER_PRD"="DISCOVERER"
"UEUL_FG_USER_PRD"="DISCOVERER"

Thanks in advance to anyone who can help me!

J.
 
Ok. I've found out how to edit the registry with a batch file. Does
anyone know how to use conditions looking into the registry using a
batch file?

J.
 
jshee42 said:
Ok. I've found out how to edit the registry with a batch file.
Does anyone know how to use conditions looking into the registry
using a batch file?
Hi,

This might work:

A reg.exe query, piping the output to find.exe, and then check the
error level to see if find.exe found what you was looking for.

Some examples from the microsoft.public.win2000.cmdprompt.admin
newsgroup:

http://groups.google.co.uk/group/mi...admin/msg/15c12c972a83f2a0?dmode=source&hl=en
http://groups.google.co.uk/group/mi...admin/msg/74aec5286a0236f4?dmode=source&hl=en
http://groups.google.co.uk/group/mi...admin/msg/bd6dc2c5ee967253?dmode=source&hl=en
 
Back
Top