Stop Computer From Automatically Rebooting Overnight
Solution 1
In Group Policy you can do something like that
To start group policy editor : Start / Run / gpedit.msc
Then / Computer Configuration / Administrative Templates / Windows Components / Windows Update
under there is a option like "No auto-restart with logged on users for scheduled automatic updates installations"
if not, you can set it to Enable. So it will inform you with tiny pop-up about restart but do nothing until you click it.
Solution 2
My answer will depend on a couple of things
- Are you on a network that sets policies.
- Are you an do you have administrator rights to this computer.
If the Answers were in the order of "No" and then "Yes", the following fix might help you.
- Type "gpedit.msc" in the search box in the start menu
- In the window that shows, select "Administrator Templates" under "Computer Configuration"
- Expand "Windows Components" and find "Windows Update"
- Edit the "No auto-restart..." option
For more information see http://support.microsoft.com/kb/328010
Solution 3
Go to Windows Update / Change Settings, you're probably set at the default action of Install updates automatically. Change that to one of the other settings and it will resolve your problem.
Solution 4
Set Windows Update to download but not install updates until you tell it to.
Related videos on Youtube
David Burson
Updated on September 17, 2022Comments
-
David Burson almost 2 years
I downloaded Qt 5.2.1 (the .tar.gz) on my Macbook running OS X 10.8.5 with xcode 5.0.2, unzipped, and ran this configure:
./configure -prefix $PWD/qtbase -debug-and-release -developer-build -no-c++11 -opensource -plugin-sql-sqlite -qtlibinfix _fmosoft -nomake tests -skip qtwebkit -skip qtwebkit-examples -no-compile-examples
I have a few patches to add to Qt5.2.1, so I can't just install the binaries. But I thought I'd first try to build without any patches, just using the unzipped code with my configuration options. Configure succeeds, then I run
make
That runs for about 5 minutes, then gives me this error:
../corelib/global/qt_pch.h:58:10: error: 'qglobal.h' file not found with <angled> include; use "quotes" instead #include <qglobal.h> ^~~~~~~~~~~ "qglobal.h" ../corelib/global/qt_pch.h:64:10: fatal error: 'qcoreapplication.h' file not found #include <qcoreapplication.h> ^ 2 errors generated. make[4]: *** [.pch/debug/QtNetwork_fmosoft_debug/c++.pch] Error 1 make[3]: *** [debug-all] Error 2 make[2]: *** [sub-network-make_first] Error 2 make[1]: *** [sub-src-make_first] Error 2 make: *** [module-qtbase-make_first] Error 2
What am I doing wrong? How do I build Qt5.2.1 on my Macbook?
-
Taptronic over 13 yearsI am hoping this is it. I just made the change. Wont know until it happens again next month and that is IF there is a security update.
-
Svish over 13 yearsYeah, I like to go through the list of new updates and click that Install Updates button myself. Always install everything, but like to know what's coming in and to do it when I want to.
-
rakslice over 11 yearsNote that "Windows Components" is under "Administrative Templates"
-
David Burson over 10 yearsThanks - I was trying a non-prefix build, and that's what I found in Qt's documentation to put for -prefix (I forget where I saw it). To see if it made a difference, I tried a normal prefix build as you suggested, but I got the same error as my original question. Any more ideas what could be wrong?
-
Kuba hasn't forgotten Monica over 10 years@DavidBurson It's probably an OS X 10.8-specific bug. You may wish to report it.
-
David Burson over 10 yearsit appears to be a bug with -qtlibinfix. By eliminating that flag I got past it. Still fails with another error though: /Users/david/dev/qt521source/qtbase/examples/widgets/mac/qmacnativewidget/main.mm:44:10: fatal error: 'QApplication' file not found #include <QApplication>
-
Kuba hasn't forgotten Monica over 10 years@DavidBurson The error you give is in the examples.
-no-compile-examples
seems to be a no-op, use-nomake examples
instead. -
Kuba hasn't forgotten Monica over 10 years@DavidBurson I think part of your problem is adding a lot of custom options without succeeding with the defaults first. There's really no good reason for
-qtlibinfix
for example, since you're not installing Qt globally anyway, and you won't ever be (unless you work for Apple and they intend to ship Qt as part of OS X). It's sort-of useless. You may wish to check if there are any tests for it in the test suite: my hunch is that there are none, thus the buildbots never exercise it. -
David Burson over 10 yearsthanks! You're right, I removed -qtlibinfix and -no-compile-examples and it has been building for several hours with this: ./configure -prefix $PWD/qtbase -debug-and-release -developer-build -no-c++11 -opensource -plugin-sql-sqlite -nomake tests -confirm-license