ain.raza Posted August 20, 2008 Share Posted August 20, 2008 HiI have been trying to disable automatic restart on system failure but it doesn't turn out right. I have created the tweaked and unattended versions of XP SP2 and SP3 but in both the cases the system does not have this option enabled.Has anyone else looked into this before. Is this a bug in nLite or in the Windows SetupThanks Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2008 Share Posted August 20, 2008 The following command sets it.REG ADD HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /v AutoReboot /t REG_DWORD /d 0 /fThe trick is to run it at around T-13 or later in the setup since this value is persistent. Setting it earlier will fail.I use an addon to accomplish the task. Here's an example of the INF I use:[Version]Signature="$Windows NT$"[Optional Components]5erXPref[5erXPref]OptionDesc ="5eraph's XP Personal Preferences"Tip ="5eraph's XP Personal Preferences Addon"Modes =0,1,2,3AddReg =XPrefs.AddReg[XPrefs.AddReg]HKLM,"%RunOnce%","AR-1",,"REG ADD ""HKLM\%RunOnce%"" /v ""AR"" /t REG_SZ /d ""REG ADD HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /v AutoReboot /t REG_DWORD /d 0 /f"" /f"[Strings]RunOnce ="Software\Microsoft\Windows\CurrentVersion\RunOnce"And here is the corresponding entries_prefs.ini[general]builddate = 2008/07/04description = XP Personal Preferences Addon by 5eraphtitle = XP Personal Preferences Addonversion = 2.1[sysoc]5erXPref=ocgen.dll,OcEntry,5erXPref.inf,HIDE,7[dosnet_files]d1,5erXPref.inf[txtsetup_files]5erXPref.inf = 100,,,,,,,20,0,0[i386_compress]rvmtemp\extracted\5erXPref.inf 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