summaryrefslogtreecommitdiffstats
path: root/chrome/installer/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add a script to installer/tools to dump a shortcut's property bag.gab2015-07-311-0/+58
| | | | | | | | | | | This is required to verify DualMode and AppUserModelId properties which are not otherwise visible in Windows shortcut properties UI. BUG=501166 Review URL: https://codereview.chromium.org/1259213005 Cr-Commit-Position: refs/heads/master@{#341350}
* Add installer_util_unittests to the GN windows buildbrettw2015-05-011-1/+1
| | | | | | | | | | | | | | This fixes some C++ Warnings on Windows to avoid having to add suppressions to the GN build. Moves the generated strings header to the same place in the gen tree as it is in the source tree. Update includes. Previously landed https://codereview.chromium.org/1062743006/ TBR=scottmg@chromium.org CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg Review URL: https://codereview.chromium.org/1116293002 Cr-Commit-Position: refs/heads/master@{#327929}
* Fix line endings for more Windows .rc files.Brett Wilson2015-04-301-69/+69
| | | | | | | | | | DOS->Unix line endings. TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1117083002 Cr-Commit-Position: refs/heads/master@{#327771}
* Make callers of CommandLine use it via the base:: namespace, and remove the ↵avi2014-12-251-1/+1
| | | | | | | | | | | | global alias. BUG=422426 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/812353003 Cr-Commit-Position: refs/heads/master@{#309644}
* Change base/file_utils.h includes to base/files/file_utils.h in chrome/, part 2.thestig2014-08-231-1/+1
| | | | | | Review URL: https://codereview.chromium.org/497083004 Cr-Commit-Position: refs/heads/master@{#291609}
* Introduce a new tool to diagnose setup.exe's stage timings without having to ↵gab@chromium.org2013-12-161-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instrument setup.exe itself. Here is an example output when observing an update from M29 to M30 via a diff-installer on an XP VM: """ No ongoing stage, waiting for next install/update cycle... 12/10/13 17:22:55: Starting stage 2... 12/10/13 17:23:06: Stage 2 took 10.03 seconds. 12/10/13 17:23:06: Starting stage 4... 12/10/13 17:23:52: Stage 4 took 46.32 seconds. 12/10/13 17:23:52: Starting stage 17... 12/10/13 17:23:52: Stage 17 took 0.04 seconds. 12/10/13 17:23:52: Starting stage 6... 12/10/13 17:23:52: Stage 6 took 0.06 seconds. 12/10/13 17:23:52: Starting stage 7... 12/10/13 17:23:52: Stage 7 took 0.50 seconds. 12/10/13 17:23:52: Starting stage 9... 12/10/13 17:23:54: Stage 9 took 1.28 seconds. 12/10/13 17:23:54: Starting stage 12... 12/10/13 17:23:54: Stage 12 took 0.56 seconds. 12/10/13 17:23:54: Starting stage 15... 12/10/13 17:23:55: Stage 15 took 0.20 seconds. 12/10/13 17:23:55: Install/update complete, stages timings: [ { "stage": 2, "time": 10.029999999999999 }, { "stage": 4, "time": 46.32 }, { "stage": 17, "time": 0.040000000000000001 }, { "stage": 6, "time": 0.059999999999999998 }, { "stage": 7, "time": 0.5 }, { "stage": 9, "time": 1.28 }, { "stage": 12, "time": 0.56000000000000005 }, { "stage": 15, "time": 0.20000000000000001 } ] 12/10/13 17:23:55: No more stages, waiting for next install/update cycle... """ NOTRY=True BUG=167622 Review URL: https://codereview.chromium.org/109003003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241020 0039d316-1c4b-4281-b951-d872f2087c98
* Move GetFileSize, NormalizeFilePath to base namespacebrettw@chromium.org2013-12-041-1/+1
| | | | | | | | | BUG= R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/102873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238722 0039d316-1c4b-4281-b951-d872f2087c98
* Rename base::Delete to base::DeleteFilebrettw@chromium.org2013-07-161-1/+1
| | | | | | | | | | | Also renames DeleteAfterReboot to DeleteFileAfterReboot, and removes FileUtilProxy::RecursiveDelete which was never called. BUG= R=shess@chromium.org Review URL: https://codereview.chromium.org/18584011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211822 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_util::Delete to the base namespacebrettw@chromium.org2013-07-011-1/+1
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/16950028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209475 0039d316-1c4b-4281-b951-d872f2087c98
* Define a LoggingSettings struct to use for InitLogging()akalin@chromium.org2013-06-211-6/+6
| | | | | | | | | | | | | | | | | | Update all callers of InitLogging() to use LoggingSettings, only setting fields that need a non-default value. Turn LoggingDestination enum into a bit field and define add LOG_DEFAULT and LOG_ALL constants. Fix erroneous comment saying that the default was to not lock the log file. BUG=247594 TBR=brettw@chromium.org, cpu@chromium.org, gene@chromium.org, jam@chromium.org, rch@chromium.org, scherkus@chromium.org, sergeyu@chromium.org, sky@chromium.org, tkent@chromium.org, yfriedman@chromium.org, zea@chromium.org Review URL: https://codereview.chromium.org/16519003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207920 0039d316-1c4b-4281-b951-d872f2087c98
* Convert FilePath to base::FilePath.brettw@chromium.org2013-02-191-1/+1
| | | | | | | | | | This removes the using for Windows since it is no longer necessary. BUG= Review URL: https://codereview.chromium.org/12303016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183170 0039d316-1c4b-4281-b951-d872f2087c98
* Rename FilePath to base::FilePath and use new location of ↵brettw@chromium.org2013-02-081-4/+4
| | | | | | | | string_number_conversions in some chrome subdirectories. Review URL: https://codereview.chromium.org/12218065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181564 0039d316-1c4b-4281-b951-d872f2087c98
* WinDDK ATL and MSVC express 2008/2005 compatability mark@chromium.org2011-03-211-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gives 'out of the box' compatability with VC2008 express - i.e. no modifications needed to system headers or .gyp* files or related hacks. Just set the GYP_MSVS_VERSION to 200Xe (e for express, same as the linked blog on the issue and first google hit as well). 1) Changes to build\common.gypi to turn off to define COMPILER_MSVC_EXPRESS if a express is detected (through the GYP_MSVC_VERSION environment variable), turn off the _SECURE_ATL define (which is flagged as an error with WinDDK's ATL, _SECURE_ATL adds [more] CRT checks to other ATL versions) and hard to link to the atl stdthunk library with express editions. Also, explicitly link to the base WinSDK libraries in common.gypi and mini_installer.gypi for MSVC 2005 express. 2) Fixes a few .cc files that have the wrong include order with the ATL headers when using the Windows DDK ATL. The Windows DDK ATL brings in intsafe.h (WinSDK, not WinDDK) with atlwin.h and generates multiple INTXX_MIN/MAX def warnings which get flagged as errors with the warnings as errors flag if not included before other libraries that have the same definitions like ICU. 3) Changes to .rc files to avoid pulling in afxres.h (an MFC header - it's available in the WinDDK) and winres.h which VCExpress doesn't have (it's available in a WinSDK sample, but that kind of the purpose of it). The main Chromium .rc files are already structured this way, I just changed the rest and changed the output of grit to do the same. 4) Removes the memset obj file linking in mini_installer.gyp and simply implements memset for mini_installer.cc. Only changes to the chromium branch now. There are some .rc files in the Python26, Native Client, and Angle in samples that could #3 changes. They are not required for Chromium, however. ------ VC2005SP1 can be downloaded at http://www.microsoft.com/downloads/en/details.aspx?FamilyId=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en (or non-SP1 at http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe) VC2008SP1 can be downloaded at http://www.microsoft.com/downloads/en/details.aspx?FamilyId=F3FBB04E-92C2-4701-B4BA-92E26E408569&displaylang=en currently. The base developer instructions work fine afterwards with a couple tweaks for express versions: http://www.chromium.org/developers/how-tos/build-instructions-windows Under "Additional (free) downloads" under step 2: X) Only the first 3 Non-SP KB Patches are needed for express. Don't forget to forget GYP_MSVS_VERSION environment as appropriate - 2008e for Visual C++ 2008 Express, for example. Under "Additional (free) downloads" after step 5 [These only apply to 2008 express, 2005 works fine out of the box]: 6A) Download the WinDDK for the atl headers and libs - http://msdn.microsoft.com/en-us/windows/hardware/gg487463.aspx. It works fine, but you do not need to install the whole DDK. In the WDK directory just install headers.msi, libs_x86fre.msi, and libs_x64fre.msi; just grab the atl headers and atl*.lib libs; right click the installers and uninstall afterwards. Add the appropriate include and lib paths to your global settings. 6B) To build x64 targets (x64 Native Client) download: http://www.cppblog.com/Files/xcpp/VCE64BIT_WIN7SDK.zip Follow the readme instructions. Further information behind that and x64 target building with express: - http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/ - http://www.cppblog.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.html ---------------- BUG=1433, 5026, 72885 TEST=Compiles in both Debug and Release mode in Visual C++ Express 2008/2005 and does not effect other build setups. In addition, the WinDDK ATL compiles with the secure_atl=0 in the GYP_DEFINES environment variable on non-express versions of MSVC. Review URL: http://codereview.chromium.org/6676030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78921 0039d316-1c4b-4281-b951-d872f2087c98
* New installation validator machinery to check the machine state. This CL ↵grt@chromium.org2011-02-143-0/+272
contains the first two parts of the validator: 1. installer::InstallationValidator class, used by setup.exe to confirm that all is well following an installer operation. Violations are logged at ERROR level. 2. validate_installation.exe, used by humans to check the overall state of a machine. The third part, in which violations fire nonfatal test failures for use in other tests, will follow in a subsequent CL. BUG=none TEST=Run validate_installation.exe on machine(s) containing all conceivable permutations of Chrome and Chrome Frame, and see if it reports any violations. Review URL: http://codereview.chromium.org/6490024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74819 0039d316-1c4b-4281-b951-d872f2087c98