| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Windows-specific function implementations for the firstrun subcommand. |
| 6 |
| 7 package firstrun |
| 8 |
| 9 // firstrunCheckNotInstalled is a sanity check to make sure that the user really |
| 10 // wants to do firstrun again, if it looks like cr is already installed. |
| 11 func firstrunCheckNotInstalled() { |
| 12 // Check to see if a path ending in 'cr/bin' in in %PATH%. |
| 13 // Check to see if an executable called 'cr.exe' is in that path. |
| 14 } |
| 15 |
| 16 // firstrunPromptInstallDir prompts the user for a directory path to install. |
| 17 func firstrunPromptInstallDir() { |
| 18 // Figure out a sane place to suggest. |
| 19 // Suggest it and ask the user for an alternative. |
| 20 // Check that the chosen directory makes sense. |
| 21 } |
| 22 |
| 23 // firstrunInitInstallDir sets up the selected directory to house cr. It creates |
| 24 // the modules/ and bin/ subdirectories, places cr.exe in the top level, and |
| 25 // symlinks it into bin/. |
| 26 func firstrunInitInstallDir() { |
| 27 |
| 28 } |
| 29 |
| 30 // firstrunUpdatePath finds the registry entry for %PATH%, sees if it can |
| 31 // automatically update it, and prompts the user for permission to do so. |
| 32 func firstrunUpdatePath() { |
| 33 |
| 34 } |
| 35 |
| 36 // firstrunPrintUpdatePathInstructions prints instructions for the user to |
| 37 // update their %PATH% manually. This is used if updatePath fails, or if the |
| 38 // user declines to have their registry updated automatically. |
| 39 func firstrunPrintUpdatePathInstructions() { |
| 40 |
| 41 } |
| OLD | NEW |