summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/adminauthorization_win.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use of QLoggingCategoryKatja Marttila2020-02-131-4/+7
| | | | | | | | The change enables easier filtering of log messages Change-Id: I769f7c163e20f34c37fa0fe2b0729867ffca5bcb Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Merge remote-tracking branch 'origin/2.0'Katja Marttila2017-01-301-17/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Changelog dist/config/config.xml dist/packages/org.qtproject.ifw.binaries/meta/package.xml dist/packages/org.qtproject.ifw/meta/package.xml installerfw.pri src/libs/installer/lib7z_create.h src/libs/kdtools/kdgenericfactory.cpp src/libs/kdtools/kdgenericfactory.h src/libs/kdtools/kdupdaterapplication.cpp src/libs/kdtools/kdupdaterapplication.h src/libs/kdtools/kdupdaterupdatesourcesinfo.cpp src/libs/kdtools/kdupdaterupdatesourcesinfo.h src/libs/kdtools/localpackagehub.cpp src/libs/kdtools/localpackagehub.h src/libs/kdtools/updatefinder.cpp src/libs/kdtools/updatefinder.h tools/binarycreator/resources/mkdmg.sh Change-Id: Iab2513f549832d2e750e77131c673457ab265af4
| * License header update to GPL-EXCEPTKatja Marttila2017-01-261-17/+12
| | | | | | | | | | Change-Id: I6426c4e8f932cf26c6c638dec18d0c12e22972d1 Reviewed-by: Janne Anttila <janne.anttila@theqtcompany.com>
* | Merge remote-tracking branch 'origin/2.0'Iikka Eklund2016-01-201-4/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: installerfw.pri src/libs/kdtools/kdgenericfactory.cpp src/libs/kdtools/kdgenericfactory.h src/libs/kdtools/kdupdaterapplication.cpp src/libs/kdtools/kdupdaterapplication.h src/libs/kdtools/kdupdaterupdatesourcesinfo.cpp src/libs/kdtools/kdupdaterupdatesourcesinfo.h sync.profile Change-Id: Ifdc8b065f89b7e241bd3788ed79768e21888161f
| * Update license headersIikka Eklund2015-12-291-4/+3
| | | | | | | | | | | | | | | | | | Update existing license headers. LGPL -> LGPLv21. Update copyright year as well. Change-Id: Ie1d71f8c68186b8f625f409ddf94691f178093c9 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* | Sanitize QDebug outputKai Koehne2015-07-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Prefer using the stream operator logic instead of using QString::fromLatin1. Add a noquote() where a QString should be printed without any quotes/escapes. This also fixes the tests with Qt 5.5, where QString's are further escaped. Change-Id: Ie3afd14b9355101d3c0b52f30f66ec759c76526c Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Unify translated error messagesKai Koehne2015-06-241-3/+3
|/ | | | | | | | | | | | * Enclose file paths in "" * Localize file paths with QDir::toNativeSeparators. * Make sure sentences end with a '.' * Append error details always by ':', e.g. tr("Failed to copy file '%1': %2").(...) * Use 'directory' instead of 'folder' everywhere Change-Id: Ie045f429f72ad5045c96537465c5fb9d2e99d250 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update CopyrightKai Koehne2015-02-181-7/+7
| | | | | Change-Id: I8dde6629cfd461104364d5cdc255cb54b58283fa Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Move the function to utils and make use where possible.kh12014-11-061-26/+1
| | | | | | Change-Id: Ie4c97114a1f1874e239955a5d9634b1029f9c178 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* Add LGPLv3 as new licenseKai Koehne2014-10-161-14/+7
| | | | | | | Change-Id: I61158f956894e209dccf83744b4753774676099d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
* Don't try to elevate user rights if impossiblekh12014-06-261-0/+14
| | | | | | | | | | On Windows, if the user doesn't have administrative rights, we have to query the system policy for UAC. If UAC is not enabled, it is obviously not possible to use UAC to elevate the user's rights. Change-Id: Ieccf112efb50a6426277b32516ab58ca467a364e Reviewed-by: Sascha Cunz <sascha.cunz@gmail.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Fix AdminAuthorization implementation.kh12014-06-191-12/+5
| | | | | | | | | - execute() does the magic of getting privileges and starting the process - hasAdminRights() simply returns if we started privileged.. Change-Id: I0940a02556fe240af0ee7dfb068f7f8009eb683e Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Use qt_windows.h.kh12014-01-071-5/+2
| | | | | | | Fixes NOMINMAX and mingw missing _WIN32_WINNT define. Change-Id: I28ea6f328b495033d484fa07181062dc92f0855f Reviewed-by: Niels Weber <niels.weber@digia.com>
* mingw compile fixkh12013-06-191-0/+3
| | | | | Change-Id: I2d67db72e76a25f5af7ae4e0d23efe6f08bfe68e Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Set SEE_MASK_NOASYNC when launching elevated processKai Koehne2013-06-171-0/+1
| | | | | | | | | | | Set the SEE_MASK_NOASYNC flag in the hope to fix the mysterious "Couldn't get authorization" error. This requires the platform API from MSVC 2007 or newer. Task-number: QTBUG-31788 Change-Id: Ida254820e7c46e80bc2269531183c206c1fe2c8d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Check return value of ShellExecuteExW instead of GetLastErrorKai Koehne2013-06-171-2/+1
| | | | | | | | | | It's unclear from the MSDN documentation whether LastError is also set if ShellExecuteEx succeeds. Therefore rather check for the return value. Task-number: QTBUG-31788 Change-Id: Id74377445c5e64a056d4f1c0ec6ae29b02a0d98e Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* add warning output if AdminAuthorization::execute fails on winTim Jenssen2013-06-141-2/+33
| | | | | Change-Id: I4ce3cc601f4d49bc7e4367cbe021304cd6338057 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* revert any changes at hasAdminRights()Tim Jenssen2013-05-291-4/+4
| | | | | | | Task-number: QTIFW-266 Change-Id: Ie8d7cae686cbe6e00ddfbd715c72f937a7f1929d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* use right types to interact with WinAPITim Jenssen2013-05-281-5/+5
| | | | | | | | - the problem is that a bool variable is not big enough to get the result of CheckTokenMembership this causes in random memory corruptions Change-Id: I16d07ae9af1e5991990ed010a8c4fdb463e5e833 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Compile.kh12013-03-111-1/+1
| | | | | Change-Id: Idca34a8ee0561c737aa6e305e748e062ce17b6fa Reviewed-by: Niels Weber <niels.weber@digia.com>
* Replace TRUE and FALSE with true and falseNiels Weber2013-03-111-2/+2
| | | | | Change-Id: I2b29fc799523c0bb57dd2c0fe31ab23a7bc890be Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Add 2013 to the copyright.Niels Weber2013-02-051-1/+1
| | | | | Change-Id: If64730ba7203d1a910a426c0d9c9a738ecfeff4b Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Make IFW compile with mingw.kh12013-01-291-1/+7
| | | | | Change-Id: I0336e02ef701a2bc392bd385d1822bc51cee0c5c Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Change copyright headers from Nokia to DigiaSergio Ahumada2012-12-211-18/+27
| | | | | Change-Id: Id55a71a6ee24b234739b6066e11e9c1f2e389f73 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Fix freeze after rejecting UAC account (check GetLastError()).kh12012-10-251-25/+28
| | | | | | | | | | Fixes too the case with runing a shared build. Since the environment is not shared, we would not be able to load missing libs, thus failing to start the server and endless loop the wait for the servers connection. Change-Id: If4c50783eb86488b3c2e0a92357750d9c17e7750 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* remove W from windows methodsTim Jenssen2012-04-191-2/+2
| | | | | | | | - there are defines in the windows api which use the correct function (ASCII/Unicode ...) Change-Id: I2c545a67c3d23040bf128ecbc65d7e5015e997b5 Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Reorganize the tree, have better ifw.pri. Shadow build support.kh12012-03-191-0/+103
Change-Id: I01fb12537f863ed0744979973c7e4153889cc5cb Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>