diff options
author | initial.commit@chromium.org <initial.commit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 02:14:31 +0000 |
---|---|---|
committer | initial.commit@chromium.org <initial.commit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 02:14:31 +0000 |
commit | 5a7bdf208c28c210b39cff63d1cf91302b02821b (patch) | |
tree | 5ff484561562f78b29d2670168a9e3b40b48dcab /ceee/installer_dll | |
parent | 26a54a5e0f4603c8fda2fe51789d331125993c9a (diff) | |
download | chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.zip chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.tar.gz chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.tar.bz2 |
Checking in the initial version of CEEE (Chrome Extensions Execution
Environment), an optional feature of Chrome Frame that acts as an
adapter layer for a subset of the Chrome Extension APIs. This enables
extensions that stick to the supported subset of APIs to work in the
context of Chrome Frame with minimal or sometimes no changes.
See http://www.chromium.org/developers/design-documents/ceee for an
overview of the design of CEEE.
TEST=unit tests (run ceee/smoke_tests.bat as an administrator on Windows)
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ceee/installer_dll')
-rw-r--r-- | ceee/installer_dll/ceee_installer_dll.gyp | 66 | ||||
-rw-r--r-- | ceee/installer_dll/generate_packing_list.py | 24 | ||||
-rw-r--r-- | ceee/installer_dll/installer_helper.cc | 421 | ||||
-rw-r--r-- | ceee/installer_dll/installer_helper.def | 13 | ||||
-rw-r--r-- | ceee/installer_dll/installer_helper.h | 55 | ||||
-rw-r--r-- | ceee/installer_dll/installer_helper.rc | 85 | ||||
-rw-r--r-- | ceee/installer_dll/resource.h | 20 |
7 files changed, 684 insertions, 0 deletions
diff --git a/ceee/installer_dll/ceee_installer_dll.gyp b/ceee/installer_dll/ceee_installer_dll.gyp new file mode 100644 index 0000000..205ecba --- /dev/null +++ b/ceee/installer_dll/ceee_installer_dll.gyp @@ -0,0 +1,66 @@ +# Copyright (c) 2010 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'variables': { + 'chromium_code': 1, + }, + 'includes': [ + '../../build/common.gypi', + '../../ceee/common.gypi', + ], + 'targets': [ + { + 'target_name': 'ceee_installer_helper', + 'type': 'shared_library', + 'dependencies': [ + '../../base/base.gyp:base', + '../../chrome/chrome.gyp:common', + '../../ceee/common/common.gyp:ceee_common', + '../../ceee/ie/common/common.gyp:ie_common', + '../firefox/firefox.gyp:xpi', + '<(DEPTH)/chrome/chrome.gyp:chrome_version_header', + '<(DEPTH)/chrome/chrome.gyp:installer_util', + ], + 'include_dirs': [ + '<(INTERMEDIATE_DIR)', + ], + 'sources': [ + 'installer_helper.cc', + 'installer_helper.def', + 'installer_helper.h', + 'installer_helper.rc', + 'resource.h', + '$(OutDir)/ceee_ff.xpi', + # TODO(joi@chromium.org) Load this in a nicer way. + '../../chrome/installer/mini_installer/pe_resource.cc', + '../../chrome/installer/mini_installer/pe_resource.h', + ], + 'msvs_settings': { + 'VCLinkerTool': { + 'OutputFile': '$(OutDir)/servers/$(ProjectName).dll', + }, + }, + 'actions': [ + { + 'action_name': 'generate_packing_list', + 'msvs_cygwin_shell': 0, + 'inputs': [ + 'generate_packing_list.py', + '$(OutDir)/ceee_ff.xpi', + ], + 'outputs': [ + '<(INTERMEDIATE_DIR)/ceee_installer_packing_list.txt', + ], + 'action': [ + '<@(python)', + 'generate_packing_list.py', + '>(_outputs)', # output file + '$(OutDir)/ceee_ff.xpi', # one or more packed files + ], + }, + ], + }, + ], +} diff --git a/ceee/installer_dll/generate_packing_list.py b/ceee/installer_dll/generate_packing_list.py new file mode 100644 index 0000000..229bd8c --- /dev/null +++ b/ceee/installer_dll/generate_packing_list.py @@ -0,0 +1,24 @@ +# Copyright (c) 2010 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +'''For each argument, writes a line suitable for inclusion in an RC file to +include the file named as argument as a binary resource. +''' + + +import os +import sys + +if __name__ == '__main__': + if len(sys.argv) < 3: + print 'ERROR: Usage: generate_packing_list.py OUTPUT ARG1 [ARGX]*' + sys.exit(1) + + out = open(sys.argv[1], 'w') + out.write('// Automatically generated by generate_packing_list.py\n') + for arg in sys.argv[2:]: + out.write('%s BINARY\n' % os.path.basename(arg)) + arg = arg.replace('\\', '/') + out.write('"%s"\n' % arg) + out.close() diff --git a/ceee/installer_dll/installer_helper.cc b/ceee/installer_dll/installer_helper.cc new file mode 100644 index 0000000..096716f --- /dev/null +++ b/ceee/installer_dll/installer_helper.cc @@ -0,0 +1,421 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Small DLL shim to register and unregister all CEEE components. + +#include "ceee/installer_dll/installer_helper.h" + +#include "base/at_exit.h" +#include "base/command_line.h" +#include "base/file_util.h" +#include "base/logging.h" +#include "base/path_service.h" +#include "base/process_util.h" +#include "base/win/registry.h" +#include "ceee/common/com_utils.h" +#include "ceee/common/install_utils.h" +#include "ceee/ie/common/ceee_module_util.h" +#include "chrome/common/zip.h" +#include "chrome/installer/mini_installer/pe_resource.h" +#include "chrome/installer/util/google_update_constants.h" + +class InstallerHelperModule : public CAtlDllModuleT<InstallerHelperModule> { + public: + InstallerHelperModule(); + + private: + static const wchar_t* kLogFileName; + base::AtExitManager at_exit_; +}; + +const wchar_t* InstallerHelperModule::kLogFileName = L"ff_installer.log"; + +InstallerHelperModule::InstallerHelperModule() { + wchar_t logfile_path[MAX_PATH]; + DWORD len = ::GetTempPath(arraysize(logfile_path), logfile_path); + ::PathAppend(logfile_path, kLogFileName); + + // It seems we're obliged to initialize the current command line + // before initializing logging. This feels a little strange for + // a DLL. + CommandLine::Init(0, NULL); + + logging::InitLogging( + logfile_path, + logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, + logging::LOCK_LOG_FILE, + logging::APPEND_TO_OLD_LOG_FILE); +} + +InstallerHelperModule _AtlModule; + +namespace { + +const wchar_t* kChromeFrameDllName = L"npchrome_frame.dll"; +const wchar_t* kFfCeeeBaseName = L"ceee_ff"; +const wchar_t* kFfCeeeExtension = L".xpi"; + +const wchar_t* kCeeeFirefoxExtensionName = L"ceee@google.com"; + +// The type of the resource we use to embed our XPI. +const wchar_t* kEmbeddedResourceType = L"BINARY"; + +HRESULT CallDllEntryPoint(const wchar_t* dll_name, + const char* function_name) { + HRESULT hr = STG_E_FILENOTFOUND; + FilePath path; + PathService::Get(base::FILE_MODULE, &path); + path = path.DirName().Append(dll_name); + + if (file_util::PathExists(path)) { + HMODULE module = ::LoadLibrary(path.value().c_str()); + if (module) { + FARPROC proc = ::GetProcAddress(module, function_name); + if (proc) { + hr = proc(); + } else { + hr = E_INVALIDARG; + } + + ::FreeLibrary(module); + } + } + + return hr; +} + +// Updates @p combined_result to be @p hr but only if @p combined_result +// does not already reflect an error. +void AggregateComError(HRESULT hr, HRESULT* combined_result) { + if (SUCCEEDED(*combined_result)) { + *combined_result = hr; + } +} + +HRESULT RegisterIeBroker(bool do_register) { + HRESULT hr = STG_E_FILENOTFOUND; + FilePath broker_path; + PathService::Get(base::FILE_MODULE, &broker_path); + broker_path = broker_path.DirName().Append( + ceee_module_util::kCeeeBrokerModuleName); + + if (file_util::PathExists(broker_path)) { + CommandLine command_line(broker_path); + command_line.AppendSwitch(do_register ? "/RegServer" : "/UnregServer"); + + if (base::LaunchApp(command_line, + true, // wait for process to finish + true, // hide when run + NULL)) { + hr = S_OK; + } else { + hr = com::AlwaysErrorFromLastError(); + } + } + + return hr; +} + +// Gets the path in which to install the FF CEEE. Its important that this +// path not contain any component that is dependent on the version, otherwise +// Firefox will believe that the add-on was uninstalled and re-installed. +FilePath GetFirefoxCeeePath() { + FilePath dir_path; + PathService::Get(base::FILE_MODULE, &dir_path); + return dir_path.DirName().DirName().Append(kFfCeeeBaseName); +} + +// If @p extracting is true, extracts the Firefox CEEE XPI from a resource +// in @p module to disk as a sibling of the current DLL, and unzips it to a +// directory in the parent of this DLL's directory. For example, this DLL +// typically lives at: +// +// C:\Program Files\Google\CF\Application\<version>\ceee_installer_helper.dll +// +// where <version> is the version string of the CEEE in dotted notation, like +// 7.0.515.0. This function extracts the resource from this DLL and puts it +// into an XPI file called: +// +// C:\Program Files\Google\CF\Application\<version>\ceee_ff.xpi +// +// The XPI file is then unzipped into the parent directory like this: +// +// C:\Program Files\Google\CF\Application\ceee_ff\... +// +// If @p extracting is false, deletes said XPI and directory from disk. +// +// @return S_OK if successful. +HRESULT ExtractOrDeleteFirefoxCeee(HMODULE module, bool extracting) { + DCHECK(module); + + FilePath dir_path(GetFirefoxCeeePath()); + + std::wstring xpi_file_name(kFfCeeeBaseName); + xpi_file_name = xpi_file_name + kFfCeeeExtension; + + FilePath xpi_path; + PathService::Get(base::FILE_MODULE, &xpi_path); + xpi_path = xpi_path.DirName().Append(xpi_file_name); + + if (extracting) { + // Load our XPI resource. + PEResource resource(xpi_file_name.c_str(), kEmbeddedResourceType, + module); + if (!resource.IsValid()) { + NOTREACHED() << "Failed to find XPI resource. " << com::LogWe(); + return com::AlwaysErrorFromLastError(); + } + + // Write the XPI to disk. + bool success = resource.WriteToDisk(xpi_path.value().c_str()); + if (!success) { + NOTREACHED() << "Failed to write XPI to disk. " << com::LogWe(); + return com::AlwaysErrorFromLastError(); + } + + // Create the directory to hold the unzipped contents. + success = file_util::CreateDirectory(dir_path); + if (!success) { + NOTREACHED() << "Failed to create destination directory. " + << com::LogWe(); + return com::AlwaysErrorFromLastError(); + } + + // Unzip it. + success = Unzip(xpi_path, dir_path); + if (!success) { + NOTREACHED() << "Failed to unpack archive. " << com::LogWe(); + return com::AlwaysErrorFromLastError(); + } + + return S_OK; + } else { + HRESULT hr = S_OK; + if (file_util::PathExists(xpi_path) && + !file_util::Delete(xpi_path, false)) { + NOTREACHED() << "Failed to delete XPI." << com::LogWe(); + hr = com::AlwaysErrorFromLastError(); + } + + // Try deleting directory even if deleting XPI failed. + // This is kind of dangerous (e.g. with an empty filepath) so make + // an assertion that the basename is ceee_ff (we know this to be true, + // this is in case somebody breaks the code above), meaning we're not + // about to do an rm -rf on the root of your file system. + if (dir_path.BaseName().value() == kFfCeeeBaseName) { + if (file_util::PathExists(dir_path) && + !file_util::Delete(dir_path, true)) { + NOTREACHED() << "Failed to delete XPI." << com::LogWe(); + hr = com::AlwaysErrorFromLastError(); + } + } else { + NOTREACHED() << "You were going to delete some other directory?"; + hr = E_UNEXPECTED; + } + + return hr; + } +} + +HRESULT RegisterFirefoxCeee(bool do_register) { + HRESULT hr = STG_E_FILENOTFOUND; + if (do_register) { + FilePath path(GetFirefoxCeeePath()); + + if (file_util::PathExists(path)) { + base::win::RegKey key(HKEY_LOCAL_MACHINE, L"SOFTWARE", KEY_WRITE); + if (key.CreateKey(L"Mozilla", KEY_WRITE) && + key.CreateKey(L"Firefox", KEY_WRITE) && + key.CreateKey(L"extensions", KEY_WRITE) && + key.WriteValue(kCeeeFirefoxExtensionName, path.value().c_str())) { + hr = S_OK; + } else { + hr = com::AlwaysErrorFromLastError(); + } + } + } else { + hr = S_OK; // OK if not found, then there's nothing to do + base::win::RegKey key(HKEY_LOCAL_MACHINE, L"SOFTWARE", KEY_READ); + if (key.OpenKey(L"Mozilla", KEY_READ) && + key.OpenKey(L"Firefox", KEY_READ) && + key.OpenKey(L"extensions", KEY_WRITE) && + key.ValueExists(kCeeeFirefoxExtensionName)) { + if (!key.DeleteValue(kCeeeFirefoxExtensionName)) { + hr = com::AlwaysErrorFromLastError(); + } + } + } + + return hr; +} + +const wchar_t kCeeeChannelTag[] = L"-CEEE"; + +const HKEY reg_root = HKEY_LOCAL_MACHINE; + +// Registers this install as coming from the CEEE+CF channel if it was +// installed using Omaha. +HRESULT RegisterCeeeChannel() { + std::wstring reg_key(ceee_module_util::GetCromeFrameClientStateKey()); + + base::win::RegKey key; + if (!key.Open(reg_root, reg_key.c_str(), KEY_ALL_ACCESS)) { + // Omaha didn't install the key. Perhaps no Omaha? That's ok. + return S_OK; + } + + std::wstring ap_key_value; + if (!key.ReadValue(google_update::kRegApField, &ap_key_value)) { + // Key doesn't exist yet. + if (!key.WriteValue(google_update::kRegApField, kCeeeChannelTag)) { + return E_FAIL; + } + return S_OK; + } + + if (ap_key_value.find(kCeeeChannelTag) == std::wstring::npos) { + // Key doesn't contain -CEEE + ap_key_value.append(kCeeeChannelTag); + if (!key.WriteValue(google_update::kRegApField, ap_key_value.c_str())) { + return E_FAIL; + } + return S_OK; + } + + // Everything we need is already done! + return S_OK; +} + +// Removes any registration information written by RegisterCeeeChannel. +HRESULT UnregisterCeeeChannel() { + std::wstring reg_key(ceee_module_util::GetCromeFrameClientStateKey()); + base::win::RegKey key; + if (!key.Open(reg_root, reg_key.c_str(), KEY_ALL_ACCESS)) { + // Omaha didn't install the key. + return S_OK; + } + + std::wstring ap_key_value; + if (!key.ReadValue(google_update::kRegApField, &ap_key_value)) { + // Key doesn't exist. Nothing to do. + return S_OK; + } + + size_t pos = ap_key_value.find(kCeeeChannelTag); + + if (pos == std::wstring::npos) { + // Key doesn't contain -CEEE. Nothing to do. + return S_OK; + } + + // Prune -CEEE from ap and write it. + ap_key_value.erase(pos, wcslen(kCeeeChannelTag)); + if (!key.WriteValue(google_update::kRegApField, ap_key_value.c_str())) { + return E_FAIL; + } + return S_OK; +} +} // namespace + + +// DLL Entry Point. +extern "C" BOOL WINAPI DllMain(HINSTANCE instance, + DWORD reason, + LPVOID reserved) { + return _AtlModule.DllMain(reason, reserved); +} + +// Used to determine whether the DLL can be unloaded by OLE. +STDAPI DllCanUnloadNow(void) { + return _AtlModule.DllCanUnloadNow(); +} + +// Returns a class factory to create an object of the requested type. +STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) { + return _AtlModule.DllGetClassObject(rclsid, riid, ppv); +} + +// Adds entries to the system registry. +// +// This is not the actual entrypoint; see the macro right below this +// function, which keeps us safe from ever forgetting to check for +// the --enable-ceee flag. +STDAPI DllRegisterServerImpl(void) { + HRESULT hr = _AtlModule.DllRegisterServer(FALSE); + + // This function assumes the DLL is being registered with admin privileges. + + // In case of error, we abort the rest of registration - we're in bad + // shape anyway. + if (SUCCEEDED(hr)) { + hr = CallDllEntryPoint(kChromeFrameDllName, "RegisterNPAPIPlugin"); + DCHECK(SUCCEEDED(hr)) << "Could not register CF with FF" << com::LogHr(hr); + } + + if (SUCCEEDED(hr)) { + hr = RegisterIeBroker(true); + DCHECK(SUCCEEDED(hr)) << "Could not register CEEE IE Broker" << + com::LogHr(hr); + } + + if (SUCCEEDED(hr)) { + hr = ExtractOrDeleteFirefoxCeee(_AtlBaseModule.GetModuleInstance(), + true); + DCHECK(SUCCEEDED(hr)) << "Unable to extract CEEE for FF" << com::LogHr(hr); + } + + if (SUCCEEDED(hr)) { + hr = RegisterFirefoxCeee(true); + DCHECK(SUCCEEDED(hr)) << "Could not register CEEE with FF" + << com::LogHr(hr); + } + + if (SUCCEEDED(hr)) { + hr = RegisterCeeeChannel(); + DCHECK(SUCCEEDED(hr)) << "Could not register with Omaha for CEEE+CF channel" + << com::LogHr(hr); + } + + return hr; +} + +CEEE_DEFINE_DLL_REGISTER_SERVER() + +// Removes entries from the system registry. +STDAPI DllUnregisterServer(void) { + // We always allow unregistration, even if no --enable-ceee install flag. + + HRESULT combined_result = S_OK; + HRESULT hr = _AtlModule.DllUnregisterServer(FALSE); + AggregateComError(hr, &combined_result); + + // This function assumes the DLL is being unregistered with admin privileges. + + // In case of error, we continue with the rest of unregistration, to + // clean up as much as possible. + hr = CallDllEntryPoint(kChromeFrameDllName, "UnregisterNPAPIPlugin"); + DCHECK(SUCCEEDED(hr)) << "Could not unregister CF with FF" << com::LogHr(hr); + AggregateComError(hr, &combined_result); + + hr = RegisterIeBroker(false); + DCHECK(SUCCEEDED(hr)) << "Could not unregister CEEE IE Broker" << + com::LogHr(hr); + AggregateComError(hr, &combined_result); + + hr = RegisterFirefoxCeee(false); + DCHECK(SUCCEEDED(hr)) << "Could not unregister CEEE with FF" << + com::LogHr(hr); + AggregateComError(hr, &combined_result); + + hr = ExtractOrDeleteFirefoxCeee(_AtlBaseModule.GetModuleInstance(), false); + DCHECK(SUCCEEDED(hr)) << "Unable to extract CEEE for FF" << com::LogHr(hr); + AggregateComError(hr, &combined_result); + + hr = UnregisterCeeeChannel(); + DCHECK(SUCCEEDED(hr)) << "Could not unregister with Omaha for corp channel" + << com::LogHr(hr); + AggregateComError(hr, &combined_result); + + return combined_result; +} diff --git a/ceee/installer_dll/installer_helper.def b/ceee/installer_dll/installer_helper.def new file mode 100644 index 0000000..5cbfee2 --- /dev/null +++ b/ceee/installer_dll/installer_helper.def @@ -0,0 +1,13 @@ +; Copyright (c) 2010 The Chromium Authors. All rights reserved. +; Use of this source code is governed by a BSD-style license that can be +; found in the LICENSE file. +; +; Declares the module parameters. + +LIBRARY "ceee_installer_helper.DLL" + +EXPORTS + DllCanUnloadNow PRIVATE + DllGetClassObject PRIVATE + DllRegisterServer PRIVATE + DllUnregisterServer PRIVATE diff --git a/ceee/installer_dll/installer_helper.h b/ceee/installer_dll/installer_helper.h new file mode 100644 index 0000000..5db04c8 --- /dev/null +++ b/ceee/installer_dll/installer_helper.h @@ -0,0 +1,55 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CEEE_INSTALLER_DLL_INSTALLER_HELPER_H_ +#define CEEE_INSTALLER_DLL_INSTALLER_HELPER_H_ + +// Include file for standard system include files, +// or project specific include files that are used frequently, +// but are changed infrequently + +#pragma once + +#ifndef STRICT +#define STRICT +#endif + +// Modify the following defines if you have to target a platform prior to the +// ones specified below. Refer to MSDN for the latest info on corresponding +// values for different platforms. + +// Allow use of features specific to Windows XP or later. +#ifndef WINVER +#define WINVER 0x0501 +#endif + +// Allow use of features specific to Windows XP or later. +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif + +// Allow use of features specific to Windows 98 or later. +#ifndef _WIN32_WINDOWS +#define _WIN32_WINDOWS 0x0410 +#endif + +// Allow use of features specific to IE 6.0 or later. +#ifndef _WIN32_IE +#define _WIN32_IE 0x0600 +#endif + +#define _ATL_APARTMENT_THREADED +#define _ATL_NO_AUTOMATIC_NAMESPACE + +// some CString constructors will be explicit +#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS + + +#include "resource.h" +#include <atlbase.h> +#include <atlcom.h> + +using namespace ATL; + +#endif // CEEE_INSTALLER_DLL_INSTALLER_HELPER_H_ diff --git a/ceee/installer_dll/installer_helper.rc b/ceee/installer_dll/installer_helper.rc new file mode 100644 index 0000000..2c7573e0 --- /dev/null +++ b/ceee/installer_dll/installer_helper.rc @@ -0,0 +1,85 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "resource.h" +#include "version.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE 9, 1 +#pragma code_page(1252) + +#ifdef APSTUDIO_INVOKED +# error Don't open this in the GUI, it'll be massacred on save. +#endif // APSTUDIO_INVOKED + +#ifndef _MAC +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION CHROME_VERSION + PRODUCTVERSION CHROME_VERSION + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "Google Inc." + VALUE "FileDescription", "Register CEEE Components" + VALUE "FileVersion", CHROME_VERSION_STRING + VALUE "LegalCopyright", COPYRIGHT_STRING + VALUE "InternalName", "ceee_installer_helper.dll" + VALUE "OriginalFilename", "ceee_installer_helper.dll" + VALUE "ProductName", "Google Chrome Extension Execution Environment" + VALUE "ProductVersion", CHROME_VERSION_STRING + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END + +#endif // !_MAC + +///////////////////////////////////////////////////////////////////////////// +// +// String Table +// + +STRINGTABLE +BEGIN + IDS_PROJNAME "ceee_installer_helper" +END + +//////////////////////////////////////////////////////////////////////////// + +// This file lists the resources that are going to be packed with the DLL. +#include "ceee_installer_packing_list.txt" + +#endif + +#ifndef APSTUDIO_INVOKED +#endif // not APSTUDIO_INVOKED diff --git a/ceee/installer_dll/resource.h b/ceee/installer_dll/resource.h new file mode 100644 index 0000000..97153d3f --- /dev/null +++ b/ceee/installer_dll/resource.h @@ -0,0 +1,20 @@ +//{{NO_DEPENDENCIES}} +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Microsoft Visual C++ generated include file. +// Used by ceee_installer_helper.rc + +#define IDS_PROJNAME 100 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 201 +#define _APS_NEXT_COMMAND_VALUE 32768 +#define _APS_NEXT_CONTROL_VALUE 201 +#define _APS_NEXT_SYMED_VALUE 102 +#endif +#endif |