| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |