OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file contains the definitions of the installer functions that build | 5 // This file contains the definitions of the installer functions that build |
6 // the WorkItemList used to install the application. | 6 // the WorkItemList used to install the application. |
7 | 7 |
8 #include "chrome/installer/setup/install_worker.h" | 8 #include "chrome/installer/setup/install_worker.h" |
9 | 9 |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 install_list->AddSetRegValueWorkItem(reg_root, | 175 install_list->AddSetRegValueWorkItem(reg_root, |
176 uninstall_reg, installer::kUninstallStringField, | 176 uninstall_reg, installer::kUninstallStringField, |
177 quoted_uninstall_cmd.GetCommandLineString(), true); | 177 quoted_uninstall_cmd.GetCommandLineString(), true); |
178 install_list->AddSetRegValueWorkItem(reg_root, | 178 install_list->AddSetRegValueWorkItem(reg_root, |
179 uninstall_reg, | 179 uninstall_reg, |
180 L"InstallLocation", | 180 L"InstallLocation", |
181 install_path.value(), | 181 install_path.value(), |
182 true); | 182 true); |
183 | 183 |
184 // DisplayIcon, NoModify and NoRepair | 184 // DisplayIcon, NoModify and NoRepair |
185 FilePath chrome_icon(install_path.Append(installer::kChromeExe)); | 185 std::wstring chrome_icon = ShellUtil::GetChromeIcon( |
186 ShellUtil::GetChromeIcon(product.distribution(), chrome_icon.value()); | 186 product.distribution(), |
| 187 install_path.Append(installer::kChromeExe).value()); |
187 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, | 188 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, |
188 L"DisplayIcon", chrome_icon.value(), | 189 L"DisplayIcon", chrome_icon, true); |
189 true); | |
190 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, | 190 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, |
191 L"NoModify", static_cast<DWORD>(1), | 191 L"NoModify", static_cast<DWORD>(1), |
192 true); | 192 true); |
193 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, | 193 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, |
194 L"NoRepair", static_cast<DWORD>(1), | 194 L"NoRepair", static_cast<DWORD>(1), |
195 true); | 195 true); |
196 | 196 |
197 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, | 197 install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg, |
198 L"Publisher", | 198 L"Publisher", |
199 browser_dist->GetPublisherName(), | 199 browser_dist->GetPublisherName(), |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 } else { | 1220 } else { |
1221 DCHECK(operation == REMOVE_COMMAND); | 1221 DCHECK(operation == REMOVE_COMMAND); |
1222 work_item_list->AddDeleteRegKeyWorkItem(installer_state.root_key(), | 1222 work_item_list->AddDeleteRegKeyWorkItem(installer_state.root_key(), |
1223 cmd_key)->set_log_message( | 1223 cmd_key)->set_log_message( |
1224 "removing quick-enable-cf command"); | 1224 "removing quick-enable-cf command"); |
1225 } | 1225 } |
1226 } | 1226 } |
1227 } | 1227 } |
1228 | 1228 |
1229 } // namespace installer | 1229 } // namespace installer |
OLD | NEW |