Skip to content

Instantly share code, notes, and snippets.

@jimdiroffii
Created February 24, 2021 23:03
Show Gist options
  • Save jimdiroffii/25ae49317e98fc8fa35e30a83857fa4e to your computer and use it in GitHub Desktop.
Save jimdiroffii/25ae49317e98fc8fa35e30a83857fa4e to your computer and use it in GitHub Desktop.
Oracle Micros - Transaction Services Prerequisite Installer Script
<#
# Check DNS Configuration
#>
Write-Host "Checking DNS configuration..."
$error.clear()
try {Resolve-DnsName -Name microsoft.com -DnsOnly -QuickTimeout}
catch { "timeout period expired" }
if ($error) {
Write-Host "A DNS error occured. Please use public DNS servers 208.67.222.222 and 208.67.220.220"
Write-Host "Your current DNS configuration:"
Get-DNSClientServerAddress
return
}
<#
# Install WebServiceExtensions
# Requires the Web Service Extensions file to be local
# Filename: WSE2.0SP3Runtime.msi
# Directory: .\WebServiceExtensions\
#>
$wseFilepath = ".\WebServiceExtensions\WSE2.0SP3Runtime.msi"
$wseFilename = "WSE2.0SP3Runtime.msi"
$path = ".\Temp\WSE\"
If(!(test-path $path))
{
New-Item -ItemType Directory -Force -Path $path
}
Copy-Item $wseFilepath $path
Start-Process $path\$wseFilename -ArgumentList '/quiet' -Wait
<#
# Install all Visual C++ Runtimes
#>
$path = ".\Temp\VcRedist"
If(!(test-path $path))
{
New-Item -ItemType Directory -Force -Path $path
}
Install-Module VcRedist
Import-Module VcRedist
$VcList = Get-VcList | Get-VcRedist -Path $path
$VcList | Install-VcRedist -Path $path
<#
# Install IIS, ASP and .Net features
#>
Enable-WindowsOptionalFeature -Online -FeatureName NetFx3
Enable-WindowsOptionalFeature -Online -FeatureName NetFx4-AdvSrvs
Enable-WindowsOptionalFeature -Online -FeatureName NetFx4Extended-ASPNET45
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerManagementTools
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementConsole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationDevelopment
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures
Enable-WindowsOptionalFeature -Online -FeatureName IIS-DefaultDocument
Enable-WindowsOptionalFeature -Online -FeatureName IIS-DirectoryBrowsing
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HTTPErrors
Enable-WindowsOptionalFeature -Online -FeatureName IIS-StaticContent
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HealthAndDiagnostics
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpLogging
Enable-WindowsOptionalFeature -Online -FeatureName IIS-RequestMonitor
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Performance
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpCompressionStatic
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Security
Enable-WindowsOptionalFeature -Online -FeatureName IIS-RequestFiltering
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIExtensions
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility45
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIFilter
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASP
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET45
Enable-WindowsOptionalFeature -Online -FeatureName IIS-IIS6ManagementCompatibility
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Metabase
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WMICompatibility
<#
# Open a browswer to localhost to test IIS
#>
Start "http://localhost"
@jimdiroffii
Copy link
Author

Web Services Enhancements (WSE) 2.0 SP3 for Microsoft .NET

https://www.microsoft.com/en-us/download/details.aspx?id=23689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment