summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/first_run.cc')
-rwxr-xr-xchrome/browser/first_run.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc
index 21e29f9..ec747a2 100755
--- a/chrome/browser/first_run.cc
+++ b/chrome/browser/first_run.cc
@@ -116,12 +116,13 @@ bool InvokeGoogleUpdateForRename() {
}
bool LaunchSetupWithParam(const std::wstring& param, int* ret_code) {
- std::wstring exe_path;
- if (!PathService::Get(base::DIR_EXE, &exe_path))
+ FilePath exe_path;
+ if (!PathService::Get(base::DIR_MODULE, &exe_path))
return false;
- file_util::AppendToPath(&exe_path, installer_util::kSetupExe);
+ exe_path.Append(installer_util::kInstallerDir);
+ exe_path.Append(installer_util::kSetupExe);
base::ProcessHandle ph;
- CommandLine cl(exe_path);
+ CommandLine cl(exe_path.ToWStringHack());
cl.AppendSwitch(param);
if (!base::LaunchApp(cl, false, false, &ph))
return false;