Skip to content

Commit

Permalink
Fix install locations (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
adjackura committed May 2, 2017
1 parent 183d49b commit cd1b11b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion agent_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (-not (Get-Service 'GCEAgent' -ErrorAction SilentlyContinue)) {
New-Service -Name 'GCEAgent' -BinaryPathName 'C:\Program Files\Google\Compute Engine\agent\GCEWindowsAgent.exe' -StartupType Automatic -Description 'Google Compute Engine Agent'
}

$config = 'C:\Program Files\Google\Compute Engine\instance_configs.cfg'
$config = "${env:ProgramFiles}\Google\Compute Engine\instance_configs.cfg"
if (-not (Test-Path $config)) {
@'
# GCE Instance Configuration
Expand Down
2 changes: 1 addition & 1 deletion auto_updater_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $task.Principal.RunLevel = 1

$action = $task.Actions.Create(0)
$action.Path = 'powershell.exe'
$action.Arguments = '-ExecutionPolicy Bypass -NonInteractive -NoProfile -File "C:\Program Files\Google\Compute Engine\tools\auto_updater.ps1"'
$action.Arguments = '-ExecutionPolicy Bypass -NonInteractive -NoProfile -File "${env:ProgramFiles}\Google\Compute Engine\tools\auto_updater.ps1"'

# Run task 5 minutes after boot, then every day indefinitely
$boot_trigger = $task.Triggers.Create(8)
Expand Down
2 changes: 1 addition & 1 deletion google-compute-engine-auto-updater.goospec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-compute-engine-auto-updater",
"version": "1.1.1@1",
"version": "1.1.1@2",
"arch": "noarch",
"authors": "Google Inc.",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
Expand Down
2 changes: 1 addition & 1 deletion google-compute-engine-metadata-scripts.goospec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-compute-engine-metadata-scripts",
"version": "4.1.2@1",
"version": "4.1.2@2",
"arch": "x86_64",
"authors": "Google Inc.",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
Expand Down
2 changes: 1 addition & 1 deletion google-compute-engine-powershell.goospec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-compute-engine-powershell",
"version": "1.0.0@2",
"version": "1.0.0@3",
"arch": "noarch",
"authors": "Google Inc.",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
Expand Down
2 changes: 1 addition & 1 deletion google-compute-engine-sysprep.goospec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-compute-engine-sysprep",
"version": "3.6.3@1",
"version": "3.6.3@2",
"arch": "noarch",
"authors": "Google Inc.",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
Expand Down
2 changes: 1 addition & 1 deletion google-compute-engine-windows.goospec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-compute-engine-windows",
"version": "4.1.1@1",
"version": "4.1.1@2",
"arch": "x86_64",
"authors": "Google Inc.",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
Expand Down
2 changes: 1 addition & 1 deletion metadata_scripts_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$install_dir = "${env:ProgramFiles}\Compute Engine\metadata_scripts"
$install_dir = "${env:ProgramFiles}\Google\Compute Engine\metadata_scripts"
$machine_env = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'

$path = (Get-ItemProperty $machine_env).Path
Expand Down
2 changes: 1 addition & 1 deletion metadata_scripts_uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$install_dir = "${env:ProgramFiles}\Compute Engine\metadata_scripts"
$install_dir = "${env:ProgramFiles}\Google\Compute Engine\metadata_scripts"
$machine_env = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'

$path = (Get-ItemProperty $machine_env).Path
Expand Down
2 changes: 1 addition & 1 deletion sysprep_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$install_dir = "${env:ProgramFiles}\Compute Engine\sysprep"
$install_dir = "${env:ProgramFiles}\Google\Compute Engine\sysprep"
$machine_env = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'

$path = (Get-ItemProperty $machine_env).Path
Expand Down
2 changes: 1 addition & 1 deletion sysprep_uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$install_dir = "${env:ProgramFiles}\Compute Engine\sysprep"
$install_dir = "${env:ProgramFiles}\Google\Compute Engine\sysprep"
$machine_env = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'

$path = (Get-ItemProperty $machine_env).Path
Expand Down

0 comments on commit cd1b11b

Please sign in to comment.