blob: 16c4bf7368031879f99967baf87aa626d26efd4e [file] [log] [blame]
// Copyright (c) 2012 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.
//
// This file contains helper functions used by setup.
#ifndef CHROME_INSTALLER_UTIL_HELPER_H_
#define CHROME_INSTALLER_UTIL_HELPER_H_
#include "base/files/file_path.h"
namespace installer {
// This function returns the install path for Chrome depending on whether it's
// a system wide install or a user specific install.
// Returns the install path stored at
// Software\Google\Update\ClientState\{appguid}\UninstallString
// under HKLM if |system_install| is true, HKCU otherwise. If no path was stored
// in the registry, returns (%ProgramFiles%\[Company\]Product\Application) if
// |system_install| is true, otherwise returns user specific location
// (%LOCALAPPDATA%\[Company\]Product\Application).
base::FilePath GetChromeInstallPath(bool system_install);
} // namespace installer
#endif // CHROME_INSTALLER_UTIL_HELPER_H_