{"id":57165,"date":"2023-06-30T18:27:10","date_gmt":"2023-06-30T12:57:10","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=57165"},"modified":"2023-08-05T20:05:06","modified_gmt":"2023-08-05T14:35:06","slug":"windows-setup-exe-crashes-reboots-pc","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/windows-setup-exe-crashes-reboots-pc\/","title":{"rendered":"[Windows Setup] Setup.exe Immediately Crashes and Reboots Windows"},"content":{"rendered":"<p>When you run Setup from the Windows 10 or 11 ISO, the system may immediately crash and reboot. The user may not realize the reboot was due to a kernel-mode crash.<\/p>\n<p>For instance, running the Windows 11 22H2 setup <a href=\"https:\/\/www.winhelponline.com\/blog\/windows-iso-to-usb-dvd-tool-bootable-media\/\">from the ISO<\/a> may crash the system and restart the PC immediately. The Installation Assistant or Media Creation Tool may crash\/reboot the device after the download phase.<!--more--><\/p>\n<h2>Cause<\/h2>\n<p>The root cause for the crash may be your antivirus driver or other third-party drivers running on the computer.<\/p>\n<p>Also, the &#8220;Automatically restart&#8221; option may have been enabled in the Startup and Recovery settings (in the classic &#8220;System Properties&#8217; dialog). Turning off the &#8220;Automatically restart&#8221; option and enabling the minidump option will generate the .dmp files in the <code>C:\\Windows\\Minidump<\/code> folder. The minidump files need to be analyzed using WinDbg.<\/p>\n<h2>Resolution<\/h2>\n<h3>Step 1: Uninstall third-party antivirus programs<\/h3>\n<p>Uninstall third-party antivirus, firewall, and anti-malware programs you have installed. In many cases, the antivirus software&#8217;s driver may still load even though you&#8217;re uninstalled them.<\/p>\n<p>If so, use the specialized uninstaller tool supplied by the AV software vendor to remove all traces of the antivirus program.<\/p>\n<p>For example, if you&#8217;re using Avast (or uninstalled it recently), use &#8220;AvastClear&#8221; to clear all traces of the program. <a title=\"https:\/\/www.avast.com\/en-in\/uninstall-utility#pc\" href=\"https:\/\/www.avast.com\/en-in\/uninstall-utility#pc\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Avast Removal Tool | Download Avast Clear<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/avastclear.png\" alt=\"avastclear uninstall tool\" width=\"750\" height=\"465\" class=\"alignnone size-full wp-image-57177\" \/><\/p>\n<p><strong>Likewise, each antivirus vendor has a similar tool to uninstall their product.<\/strong><\/p>\n<p><strong>Note:<\/strong> It doesn&#8217;t have to be Avast in your case. Avast was mentioned as an example. It could be a different antivirus program or even a non-antivirus program that has installed some drivers.<\/p>\n<hr \/>\n<h3>Step 2: Disable the &#8220;Automatically restart&#8221; option<\/h3>\n<p>If cleanly uninstalling your third-party antivirus and firewall programs doesn&#8217;t help, enable the minidump option and turn off the &#8220;Automatic restart&#8221; option in the Startup and Recovery settings.<\/p>\n<ol>\n<li>Open <code><strong>systempropertiesadvanced.exe<\/strong><\/code><\/li>\n<li>Under &#8220;Startup and Recovery,&#8221; click &#8220;Settings.&#8221;<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-57167\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/automatically-restart-minidump-settings.png\" alt=\"automatically restart - crash dump - enable minidump\" width=\"514\" height=\"598\" \/><\/li>\n<li>Deselect &#8220;Automatically restart.&#8221;<\/li>\n<li>Enable &#8220;Write an event to the system log.&#8221;<\/li>\n<li>Choose &#8220;Small memory dump.&#8221;<\/li>\n<li>Click OK.<\/li>\n<\/ol>\n<hr \/>\n<h3>Step 3: Collect the crash dump<\/h3>\n<p>Reproduce the problem by rerunning setup.exe. A blue screen error may occur. In the blue screen error, note the details, especially the error code and the file name.<\/p>\n<p>This time the crash data will be written into a .dmp file under the <code>C:\\Windows\\Minidump<\/code> folder. Open the latest .dmp file using a debugger and find the root cause. If you haven&#8217;t used a debugger, zip the .dmp file(s) and send it to your friend or a computer support technician for analysis.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-57172\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/minidump-folder.png\" alt=\"minidump folder contents\" width=\"751\" height=\"203\" \/><\/p>\n<hr \/>\n<h3>Additional Information<\/h3>\n<p>In a recent case, Windows 11 22H2 Setup (setup.exe from the ISO) immediately crashed and rebooted the computer. The &#8220;Automatically restart&#8221; option was somehow enabled on the computer. The root cause was found after analyzing the minidump.<\/p>\n<p>Here&#8217;s what the dump contained:<\/p>\n<pre>PROCESS_NAME: setupprep.exe\r\n\r\nSTACK_TEXT:\r\nffffa881`860834a0 fffff802`80dcf31b : ffffa881`86083538 fffff802`a058c500 00000000`00000000 00000000`00000000 : nt!KeCheckStackAndTargetAddress+0x53\r\nffffa881`860834d0 fffff802`a057b076 : fffff802`a058c500 ffffa881`860844b8 ffffa881`860849e0 ffffa881`86083af0 : nt!_C_specific_handler+0x3b\r\nffffa881`86083540 fffff802`a058c500 : ffffa881`860844b8 ffffa881`860849e0 ffffa881`86083af0 ffffa881`860835e0 : aswSP+0x4b076\r\nffffa881`86083548 ffffa881`860844b8 : ffffa881`860849e0 ffffa881`86083af0 ffffa881`860835e0 fffff802`80e0477f : aswSP+0x5c500\r\nffffa881`86083550 ffffa881`860849e0 : ffffa881`86083af0 ffffa881`860835e0 fffff802`80e0477f fffff802`a05972f4 : 0xffffa881`860844b8\r\nffffa881`86083558 ffffa881`86083af0 : ffffa881`860835e0 fffff802`80e0477f fffff802`a05972f4 ffffa881`86083ae0 : 0xffffa881`860849e0\r\nffffa881`86083560 ffffa881`860835e0 : fffff802`80e0477f fffff802`a05972f4 ffffa881`86083ae0 fffff802`a057b00c : 0xffffa881`86083af0\r\nffffa881`86083568 fffff802`80e0477f : fffff802`a05972f4 ffffa881`86083ae0 fffff802`a057b00c fffff802`a0536355 : 0xffffa881`860835e0\r\nffffa881`86083570 fffff802`80cdfb47 : ffffa881`86083ae0 00000000`00000000 ffffa881`860849e0 fffff802`a0536355 : nt!RtlpExecuteHandlerForException+0xf\r\nffffa881`860835a0 00000000`00000000 : 00000000`000000c0 00000000`00000001 ffffa881`86084890 00000000`00000000 : nt!RtlDispatchException+0x297\r\n\r\nSYMBOL_NAME: aswSP+4b076\r\nMODULE_NAME: aswSP\r\nIMAGE_NAME: aswSP.sys\r\nSTACK_COMMAND: .cxr 0xffffa88186082aa0 ; kb\r\nBUCKET_ID_FUNC_OFFSET: 4b076\r\nFAILURE_BUCKET_ID: 0x3B_80000003_aswSP!unknown_function\r\nOS_VERSION: 10.0.19041.1\r\nBUILDLAB_STR: vb_release\r\nOSPLATFORM_TYPE: x64\r\nOSNAME: Windows 10\r\nFAILURE_ID_HASH: {dc5caa34-782b-6a80-8d56-54580a36ce78}\r\nFollowup: MachineOwner\r\n<\/pre>\n<div class=\"qt\">Loaded symbol image file: aswSP.sys<br \/>\nImage path: \\SystemRoot\\system32\\drivers\\aswSP.sys<br \/>\nImage name: <code>aswSP.sys<\/code><\/div>\n<p>The file <strong>aswSP.sys<\/strong> is the Avast driver that caused the crash\/reboot. Avast software was a registered AV provider on the subject computer, although the user had uninstalled the program long back.<\/p>\n<p>The problem was solved after running\u00a0AvastClear to clear all traces of the program.<\/p>\n<pre>Avast Removal Tool | Download Avast Clear.\r\nhttps:\/\/www.avast.com\/en-in\/uninstall-utility#pc<\/pre>\n<p>After a reboot, Windows 11 could be successfully installed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you run Setup from the Windows 10 or 11 ISO, the system may immediately crash and reboot. The user may not realize the reboot was due to a kernel-mode crash. For instance, running the Windows 11 22H2 setup from the ISO may crash the system and restart the PC immediately. The Installation Assistant or &#8230; <a title=\"[Windows Setup] Setup.exe Immediately Crashes and Reboots Windows\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/windows-setup-exe-crashes-reboots-pc\/\" aria-label=\"Read more about [Windows Setup] Setup.exe Immediately Crashes and Reboots Windows\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,869],"tags":[781],"class_list":["post-57165","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-windows-setup"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":56584,"url":"https:\/\/www.winhelponline.com\/blog\/access-windows-recovery-environment\/","url_meta":{"origin":57165,"position":0},"title":"How to access Windows Recovery Environment (WinRE)","author":"Ramesh","date":"June 27, 2023","format":false,"excerpt":"Windows Recovery Environment (WinRE) is a recovery environment based on Windows PE that contains troubleshooting and diagnostic tools to repair an unbootable operating system. By default, WinRE is preinstalled into Windows 10 and Windows 11. WinRE has the following features: Start recovery, troubleshooting, and diagnostic tools. (System Restore, Startup Repair,\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Automatic repair - Startup repair - Windows Recovery","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/startup-repair-advanced-options.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/startup-repair-advanced-options.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/startup-repair-advanced-options.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/startup-repair-advanced-options.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":10406,"url":"https:\/\/www.winhelponline.com\/blog\/automatically-shutdown-after-installing-updates-windows-10\/","url_meta":{"origin":57165,"position":1},"title":"How to Auto Shutdown after Installing Updates in Windows 10","author":"Ramesh","date":"July 19, 2019","format":false,"excerpt":"On patch Tuesdays, you'll see a bunch of updates such as Adobe Flash Player Security Update, Servicing Stack update, and\/or the Cumulative Update showing up in the queue when you open Windows Update settings page. For Asian countries, the updates arrive at night or late night. Installing a Feature Update\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"install updates and shut down windows 10","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/shutdown-on-idle-no-users.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/shutdown-on-idle-no-users.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/shutdown-on-idle-no-users.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":76344,"url":"https:\/\/www.winhelponline.com\/blog\/windows-setup-user-required-permissions\/","url_meta":{"origin":57165,"position":2},"title":"Fix: This user does not have the required permissions to run Setup","author":"Ramesh","date":"August 18, 2024","format":false,"excerpt":"When you run the Windows 10 or 11 Setup (setup.exe) from the ISO or USB setup disk, the following error may appear: This user does not have the required permissions to run Setup. Please run Setup elevated or with a different user that has the required permissions. Also, creating a\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"manage auditing and security log - administrators add","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/08\/manage-auditing-policy-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5646,"url":"https:\/\/www.winhelponline.com\/blog\/stop-auto-reopen-programs-restart-windows-10\/","url_meta":{"origin":57165,"position":3},"title":"Stop Auto Reopen of Programs after Restart in Windows 10","author":"Ramesh","date":"October 26, 2017","format":false,"excerpt":"One of the many small changes in Windows 10 Fall Creators Update is that the operating system can now automatically reopen programs that were running before shutdown or restart. If you shut down Windows 10 with some apps (e.g., Chrome browser, Microsoft Excel, Microsoft Word) open, some of them are\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Use my sign in info to automatically finish setting up my device after an update or restart","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/w10-sign-in-automatic-updates.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":60985,"url":"https:\/\/www.winhelponline.com\/blog\/0xc0000005-setupplatform-windows-setup\/","url_meta":{"origin":57165,"position":4},"title":"SetupPlatform.exe Error 0xc0000005 During Windows Setup","author":"Ramesh","date":"August 30, 2023","format":false,"excerpt":"When you install a Windows 10\/11 Feature Update, the setup process may go until 87% and close automatically with an exception error 0xc0000005 that is recorded in the setup logs. A crash dump file may also be generated. Setupact.log (in the Panther directory) contains these entries: Info SP BFSVC: Opening\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"diskpart list vol","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":6740,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x800f0954-net-framework-3-5-optional-feature-dism\/","url_meta":{"origin":57165,"position":5},"title":"[Fix] Error 0x800F0954 Installing .NET Framework 3.5 or Any Optional Feature","author":"Ramesh","date":"November 6, 2018","format":false,"excerpt":"When you attempt to install .NET Framework 3.5 or any other optional feature using \"Windows Features\" (optionalfeatures.exe) dialog or using DISM command-line, error 0x800F0954 may popup. After enabling .NET Framework 3.5 and clicking OK, the following error may appear: Windows couldn't complete the requested changes. The changes couldn't be completed.\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"enable feature .net framework 3.5","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/net-framework-features.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/57165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=57165"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/57165\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=57165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=57165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=57165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}