Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: cloud_print/virtual_driver/win/install/setup.cc

Issue 10636063: Minor tweeks in virtual driver build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <windows.h> 5 #include <windows.h>
6 #include <setupapi.h> // Must be included after windows.h 6 #include <setupapi.h> // Must be included after windows.h
7 #include <winspool.h> 7 #include <winspool.h>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 11 matching lines...) Expand all
22 #include "cloud_print/virtual_driver/win/virtual_driver_helpers.h" 22 #include "cloud_print/virtual_driver/win/virtual_driver_helpers.h"
23 #include "grit/virtual_driver_setup_resources.h" 23 #include "grit/virtual_driver_setup_resources.h"
24 24
25 #include <strsafe.h> // Must be after base headers to avoid deprecation 25 #include <strsafe.h> // Must be after base headers to avoid deprecation
26 // warnings. 26 // warnings.
27 27
28 namespace { 28 namespace {
29 const wchar_t kVersionKey[] = L"pv"; 29 const wchar_t kVersionKey[] = L"pv";
30 const wchar_t kNameKey[] = L"name"; 30 const wchar_t kNameKey[] = L"name";
31 const wchar_t kNameValue[] = L"GCP Virtual Driver"; 31 const wchar_t kNameValue[] = L"GCP Virtual Driver";
32 const wchar_t kPpdName[] = L"GCP-DRIVER.PPD"; 32 const wchar_t kPpdName[] = L"gcp-driver.ppd";
33 const wchar_t kDriverName[] = L"MXDWDRV.DLL"; 33 const wchar_t kDriverName[] = L"MXDWDRV.DLL";
34 const wchar_t kUiDriverName[] = L"PS5UI.DLL"; 34 const wchar_t kUiDriverName[] = L"PS5UI.DLL";
35 const wchar_t kHelpName[] = L"PSCRIPT.HLP"; 35 const wchar_t kHelpName[] = L"PSCRIPT.HLP";
36 const wchar_t* kDependencyList[] = {kDriverName, kUiDriverName, kHelpName}; 36 const wchar_t* kDependencyList[] = {kDriverName, kUiDriverName, kHelpName};
37 const wchar_t kUninstallRegistry[] = 37 const wchar_t kUninstallRegistry[] =
38 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" 38 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"
39 L"{74AA24E0-AC50-4B28-BA46-9CF05467C9B7}"; 39 L"{74AA24E0-AC50-4B28-BA46-9CF05467C9B7}";
40 const wchar_t kInstallerName[] = L"virtual_driver_setup.exe"; 40 const wchar_t kInstallerName[] = L"virtual_driver_setup.exe";
41 const wchar_t kGcpUrl[] = L"http://www.google.com/cloudprint"; 41 const wchar_t kGcpUrl[] = L"http://www.google.com/cloudprint";
42 42
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 } 580 }
581 } 581 }
582 } 582 }
583 // Installer is silent by default as required by Omaha. 583 // Installer is silent by default as required by Omaha.
584 if (CommandLine::ForCurrentProcess()->HasSwitch("verbose")) { 584 if (CommandLine::ForCurrentProcess()->HasSwitch("verbose")) {
585 cloud_print::DisplayWindowsMessage(NULL, retval, 585 cloud_print::DisplayWindowsMessage(NULL, retval,
586 cloud_print::LoadLocalString(IDS_DRIVER_NAME)); 586 cloud_print::LoadLocalString(IDS_DRIVER_NAME));
587 } 587 }
588 return retval; 588 return retval;
589 } 589 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698