Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 78c9480

Browse files
committed
wip: try reverting temporarily
1 parent 16f96d3 commit 78c9480

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

windows-rdp/main.tf

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,19 @@ resource "coder_script" "windows-rdp" {
6262
6363
# Install the module with the specified version for all users
6464
# This requires administrator privileges
65-
try {
66-
# Install-PackageProvider is required for AWS. Need to set command to
67-
# terminate on failure so that try/catch actually triggers
68-
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop
69-
Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force
70-
}
71-
catch {
72-
# If the first command failed, assume that we're on GCP and run
73-
# Install-Module only
74-
Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force
75-
}
65+
Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force
66+
67+
# try {
68+
# # Install-PackageProvider is required for AWS. Need to set command to
69+
# # terminate on failure so that try/catch actually triggers
70+
# Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop
71+
# Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force
72+
# }
73+
# catch {
74+
# # If the first command failed, assume that we're on GCP and run
75+
# # Install-Module only
76+
# Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force
77+
# }
7678
7779
# Construct the module path for system-wide installation
7880
$moduleBasePath = "C:\Windows\system32\config\systemprofile\Documents\PowerShell\Modules\$moduleName\$moduleVersion"

0 commit comments

Comments
 (0)