RenRen Posted July 10, 2008 Share Posted July 10, 2008 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\AdministrativeTemplates\WindowsComponents\Attachment ManagerRegistry Subkey : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\AttachmentsRegistry Entry: SaveZoneInformationEntry 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 /qnOrREG ADD %KEY%\002 /VE /D "Alcohol 120" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\install\alcohol\setup.exe /qn" /fREG ADD %KEY%\002 /V 2 /D "REGEDIT /S %CDROM%\install\alcohol\register.reg" /fThanks in advance Link to comment Share on other sites More sharing options...
RenRen Posted July 11, 2008 Author Share Posted July 11, 2008 Help please! Link to comment Share on other sites More sharing options...
radix Posted July 11, 2008 Share Posted July 11, 2008 (edited) Answer for first question:REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "1" /forREG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "2" /fFor the second question: is better to read again the unattended guide. Edited July 11, 2008 by radix Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 13, 2008 Share Posted July 13, 2008 It is no use.I have read the unattended guide 4 times by now and still not get it.Whats the difference?I want to install directly from the CD, will "Start " in the "RunOnce " do the work? Link to comment Share on other sites More sharing options...
mazmorbid Posted July 13, 2008 Share Posted July 13, 2008 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 More sharing options...
DJ_Shay Posted July 13, 2008 Share Posted July 13, 2008 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" /fCan 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 More sharing options...
jaclaz Posted July 13, 2008 Share Posted July 13, 2008 Can I have an expended explanation on that command?1. Why does it stats with "REG"?REG.EXE:http://www.ss64.com/nt/reg.htmlhttp://www.robvanderwoude.com/ntregistry.html jaclaz Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 14, 2008 Share Posted July 14, 2008 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?REG.EXE:http://www.ss64.com/nt/reg.htmlhttp://www.robvanderwoude.com/ntregistry.html Thanks, jaclaz! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now