Jump to content

2 Questions


Recommended Posts

Hi, I have 2 questions:

1. I want to do a reg modify while install and don't know where when and how, please help!

Group Policy:

User Configuration\Administrative

Templates\Windows

Components\Attachment Manager

Registry Subkey : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments

Registry Entry: SaveZoneInformation

Entry Value: On (1) or Off (2)

How should it look in the batch file?

2. I wondered what is better (and why? is there a difference?):

Start "Title" /wait %CDROME%\install\alcohol\setup.exe /qn

Or

REG ADD %KEY%\002 /VE /D "Alcohol 120" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\002 /V 2 /D "REGEDIT /S %CDROM%\install\alcohol\register.reg" /f

Thanks in advance

Link to comment
Share on other sites


Answer for first question:

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "1" /f

or

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "2" /f

For the second question: is better to read again the unattended guide.

Edited by radix
Link to comment
Share on other sites

I believe its better to call your bat or cmd file from RunOnceEx and I think its better to use the "REG ADD %KEY%\001" method rather than "Start".

eg RunOnceEx:

REG ADD %KEY%\001 /V 1 /D "%CDROM%\$OEM$\<Folder name>\<File name>.cmd" /f

Link to comment
Share on other sites

I believe its better to call your bat or cmd file from RunOnceEx and I think its better to use the "REG ADD %KEY%\001" method rather than "Start".

May I ask why?

eg RunOnceEx:

REG ADD %KEY%\001 /V 1 /D "%CDROM%\$OEM$\<Folder name>\<File name>.cmd" /f

Can I have an expended explanation on that command?

1. Why does it stats with "REG"?

2. Does it adds something to the registry?

3. What is "/V"?

4. What is "/D"?

5. What is "/f"?

6. I guess I right, but it can be: "REG ADD %KEY%\001 /V 1 /D "%CDROM%\GOOD_DAY\FRY_DAY\Zuhmir_setup.cmd" /f" right?

Note: I've read the guide and still has those questions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...