Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nshores
Last active May 17, 2018 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nshores/1c6caaa397249528988d7c78bd25e9fb to your computer and use it in GitHub Desktop.
Save nshores/1c6caaa397249528988d7c78bd25e9fb to your computer and use it in GitHub Desktop.
sage_install.ps1
#Note - For no UAC POP Requires UAC to be disabled. Also, Requires executionpoliy set to bypass, or unrestricted.
$arg = 'RESPONSEFILE="\\WCI-APP\Timberline Office\Install Scripts\ClientResponse.log"',
'SUPPRESS_REBOOT_DIALOG=true',
'/silent',
'/debuglog"c:\temp\install_log.log"'
#Check for .net 3.5
$fxstate = Get-WindowsCapability -Online -Name NetFX3~~~~
if ($fxstate.state -ne "Installed"){write-host "Installing .Net Framework 3.5"}
Add-WindowsCapability –Online -Name NetFx3~~~~
write-host "Installing Sage 300"
start-process -Verb runas "\\WCI-APP\Timberline Office\9.5\Accounting\WinInst\SETUP.EXE" -ArgumentList $arg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment