registry entry and remarks

C

CG

I have a reg file to double click into the registry, if I put a line in the
file that I "rem" out will that interfere with the installation of the file?
See example below. Is the last line going to cause problems installing the
registry entries? Or will it ignore it like a batch file would?



Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session
Manager\Environment]
"IBERDIR"="C:\\DIR"
"IBERROOT"="DIR"
"ROBUST"="TRUE"
"SERVER"="xxxx_ComPutername"
"SERVERCAPABLE"="TRUE"
"TERM"="5"
"TERMSTR"="xxxx_COMPUTERNAME"





REM "xxxx" should be replaced with site number from staging sheet.
 
M

Mark V

In said:
I have a reg file to double click into the registry,

That is a "merge" or "import" action just for reference.
if I put a
line in the file that I "rem" out will that interfere with the
installation of the file? See example below. Is the last line
going to cause problems installing the registry entries? Or will
it ignore it like a batch file would?



Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session
Manager\Environment]
"IBERDIR"="C:\\DIR"
"IBERROOT"="DIR"
"ROBUST"="TRUE"
"SERVER"="xxxx_ComPutername"
"SERVERCAPABLE"="TRUE"
"TERM"="5"
"TERMSTR"="xxxx_COMPUTERNAME"

REM "xxxx" should be replaced with site number from staging sheet.

That *will* be a problem. The comment or remark indicator is "; " in
column 1. IIRC comments may not be embedded within a "section". IOW
not between name=value assignment lines. Can anyone confirm that
part?
 
B

Boris

Here is a safe way to do it - make your remard an additional value under the
same key - this way it will not cause import problems, should not affect the
software that reads other walues of the same key and last but not least -
the remark will be preserved in the registry, so if you change values and
export to a new .reg file you will not lose the remarks

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\SessionManager\Environment]
"IBERDIR"="C:\\DIR"
"IBERROOT"="DIR"
"ROBUST"="TRUE"
"SERVER"="xxxx_ComPutername"
"SERVERCAPABLE"="TRUE"
"TERM"="5"
"TERMSTR"="xxxx_COMPUTERNAME"
"NOTE"= "replace xxxx with site number from staging sheet"


--
Do you wish your Registry Editor could do more? Then try RegmagiK 4.5.3.
Unique enhancements integration with Windows Explorer, faster search, and
address bar with autocomplete make RegmagiK a great addition to any
power-user's toolset.
RegmagiK runs on Windows 98, NT, 2000, XP Home, XP Professional, and Windows
Server 2003.
Visit www.RegmagiK.com for more information and free download.




Mark V said:
In said:
I have a reg file to double click into the registry,

That is a "merge" or "import" action just for reference.
if I put a
line in the file that I "rem" out will that interfere with the
installation of the file? See example below. Is the last line
going to cause problems installing the registry entries? Or will
it ignore it like a batch file would?



Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session
Manager\Environment]
"IBERDIR"="C:\\DIR"
"IBERROOT"="DIR"
"ROBUST"="TRUE"
"SERVER"="xxxx_ComPutername"
"SERVERCAPABLE"="TRUE"
"TERM"="5"
"TERMSTR"="xxxx_COMPUTERNAME"

REM "xxxx" should be replaced with site number from staging sheet.

That *will* be a problem. The comment or remark indicator is "; " in
column 1. IIRC comments may not be embedded within a "section". IOW
not between name=value assignment lines. Can anyone confirm that
part?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top