DSCResources/MSFT_xFirefox/MSFT_xFirefox.schema.psm1
Configuration MSFT_xFirefox { param ( [string]$VersionNumber = "31.0", [string]$Language = "en-US", [string]$OS = "win", [string]$machineBits = "x86", [string]$LocalPath = "$env:SystemDrive\Windows\DtlDownloads" ) $localSetupPath = $LocalPath + "\Firefox Setup " + $versionNumber +".exe" Import-DscResource -ModuleName xPSDesiredStateConfiguration File CreateLocalPath { Type = 'Directory' DestinationPath = $LocalPath Ensure = "Present" } xRemoteFile DownloadSetup { Uri = "http://download.mozilla.org/?product=firefox-" + $VersionNumber +"&os="+$OS+"&lang=" + $Language DestinationPath = $localSetupPath DependsOn = "[File]CreateLocalPath" } Package InstallFirefox { Ensure = "Present" Path = $localSetupPath Name = "Mozilla Firefox "+$VersionNumber+" ("+$machineBits+" "+$Language+")" ProductId = '' Arguments = "/SilentMode" DependsOn = "[xRemoteFile]DownloadSetup" } } |