eva2000 Posted August 7, 2005 Posted August 7, 2005 Hi in this article http://support.microsoft.com/default.aspx?...kb;en-us;875352 it says you can use unatteneded install to config SP2 installation to have DEP disabled by default but they don't go into the specifics of how to do this ?Any ideas ?thanks
Nazgul Posted August 7, 2005 Posted August 7, 2005 It is mentioned on that page, but there is an error in that information:For unattended installations of Windows XP SP2 or later versions, you can use the Unattend.txt file to pre-populate a specific DEP configuration. You can use the OSLoadOptionsVar entry in the [Data]section of the Unattend.txt file to specify a system-wide DEP configuration.This states that you can use the OSLoadOptionsVar entry to set DEP settings during unattended installation. The only problem is that they state that it should be in [Data] while it should be in [setupData].This article on Microsoft Technet specifies the different settings you can provide.
eva2000 Posted August 11, 2005 Author Posted August 11, 2005 (edited) thank you soin [setupData] put[setupData]OSLoadOptionsVar = /noexecute=AlwaysOffhmm first article is winxp sp2 says [Data] but other article is win2k3 ? Edited August 11, 2005 by eva2000
Gee Posted August 11, 2005 Posted August 11, 2005 Have you tried it modifying the Data section in winnt.sif? Were you successful?My method is not as slick, I disable DEP and make a copy of the boot.ini file after renaming it to boot.txt. I then copy this to my CD at$OEM$\$1\Boot.txtduring my clean up process, I use the following batch@echo offcd\attrib -r -a -s -h boot.inidel /q boot.iniren boot.txt boot.iniattrib +r +a +s +h boot.ini...snip...:Rebootshutdown.exe -r -f -t 60 -c "Windows XP Pro will restart in 1 minute.... IF EXPLORER WAS CLOSED DUE TO Data Execution Prevention, it will be CORRECTED on REBOOT"RD /S /Q %systemdrive%\SysPrep\:Enddel /Q %systemdrive%\*.*RD /S /Q %systemdrive%\install\EXITIt works, but DEP will activate on initial boot and this is resolved after the reboot.
eva2000 Posted August 11, 2005 Author Posted August 11, 2005 well tried with [setupData] group and tried test install and it said, line 24 of winnt.sif is invalid which pertains to [setupData] entry, so it might be [Data] group will try and update this thread
eva2000 Posted August 11, 2005 Author Posted August 11, 2005 (edited) darn [Data] group doesn't work too get invalid line 5 when running setup edit: forgot the embrace the option in quotes.. retesting [setupData] group now heh Edited August 11, 2005 by eva2000
eva2000 Posted August 11, 2005 Author Posted August 11, 2005 (edited) well didn't turn out right now my boot.ini has 2 lines original + new lineGee, how you setup that batch to run during unattended ? Edited August 11, 2005 by eva2000
Gee Posted August 12, 2005 Posted August 12, 2005 well didn't turn out right now my boot.ini has 2 lines original + new lineGee, how you setup that batch to run during unattended ?<{POST_SNAPBACK}>I use CMDLines.txt to call RunOnceEx.cmd. Here is my RunOnceEx.cmdcmdow @ /HID@echo offSET D=%SYSTEMROOT%\system32\REG ADD "HKCR\Applications\gspot.exe\shell\open\command" /d "%systemroot%\System32\gspot.exe %%1" /ve /fREG ADD "HKLM\SOFTWARE\Microsoft\WMV9_VCM" /d "%systemroot%\System32" /v "File Location" /fregsvr32 /s %D%LegitCheckControl.DLLregsvr32 /s %D%ac3filter.axregsvr32 /s %D%CLVSD.axregsvr32 /s %D%divxdec.axregsvr32 /s %D%mpeg2dmx.axregsvr32 /s %D%CoreVorbis.axregsvr32 /s %D%iac25_32.axregsvr32 /s %D%Ivfsrc.axregsvr32 /s %D%vp6dec.axregsvr32 /s %D%ir41_32.axregsvr32 /s %D%OggDS.dllregsvr32 /s %D%wmvdmod.dllregsvr32 /s %D%wmsdmod.dllregsvr32 /s %D%wmadmod.dllregsvr32 /s %D%wmspdmod.dllregsvr32 /s %D%xvid.axregsvr32 /s %D%VSFilter.dllregedit /s %D%codecreg.regREGEDIT /S %systemdrive%\install\RegTweak.regDEL %D%\L3codeca.acm /QSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\010 /VE /D "Adobe Reader 7.0.2" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Acroread702.exe" /fREG ADD %KEY%\040 /VE /D "Avast AntiVirus Home Edition" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\Avast.exe /VERYSILENT /NORESTART /SP-" /fREG ADD %KEY%\999 /VE /D "SysPrep and Reboot" /fREG ADD %KEY%\999 /V 1 /D "%systemdrive%\install\Reboot.cmd" /fEXITThe first part just loads a bunch of CoDecs and registers them. Then I do my Registry Tweaks.The last part installs custome applications during initial login.You will notice 999 runs Reboot.cmd, that is where I have my Cleanup batch file.
Gee Posted August 12, 2005 Posted August 12, 2005 I just found an easier solution after doing some research.Just simply add this one line to your Cleanup.cmd filebootcfg /raw /id 1 "/noexecute=AlwaysOff /NOPAE /fastdetect"It will modify the boot.ini file
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now