| 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 import ( |
| 10 "errors" |
| 11 ) |
| 12 |
| 13 var executableName = "cr.exe" |
| 14 |
| 15 // firstrunPromptInstallDir prompts the user for a directory path to install. |
| 16 func firstrunPromptInstallDir() (string, error) { |
| 17 return "", errors.New("firstrun_windows.firstrunPromptInstallDir not yet
implemented") |
| 18 } |
| 19 |
| 20 // firstrunInitInstallDir sets up the selected directory to house cr. It creates |
| 21 // the modules/ and bin/ subdirectories, places cr.exe in the top level, and |
| 22 // symlinks it into bin/. |
| 23 func firstrunInitInstallDir(dir string) error { |
| 24 return errors.New("firstrun_windows.firstrunInitInstallDir not yet imple
mented") |
| 25 } |
| 26 |
| 27 // firstrunUpdatePath finds the registry entry for %PATH%, sees if it can |
| 28 // automatically update it, and prompts the user for permission to do so. |
| 29 func firstrunUpdatePath(dir string) error { |
| 30 return errors.New("firstrun_windows.firstrunUpdatePath not yet implement
ed") |
| 31 } |
| 32 |
| 33 // firstrunPrintUpdatePathInstructions prints instructions for the user to |
| 34 // update their %PATH% manually. This is used if updatePath fails, or if the |
| 35 // user declines to have their registry updated automatically. |
| 36 func firstrunPrintUpdatePathInstructions() error { |
| 37 return errors.New("firstrun_windows.firstrunPrintUpdatePathInstructions
not yet implemented") |
| 38 } |
| OLD | NEW |