Skip to content

Marcuzzo/ExePackage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Executable install DSC Resource

Build status

This is a quick and dirty way for me to install executable setup's

PackageManagement (OneGet) CmdLets are used to detect the applications.

 Get-Package -Name $Name -RequiredVersion $version -ProviderName programs -ErrorAction SilentlyContinue

Example usage

Install using PowershellGet

Install-Module -Name ExePackage

Configuration ExePackageSetup
{

    param (
        [Parameter()]
        [string] $RepositoryPath
    )

    Import-DSCResource -ModuleName ExePackage

    Node localhost
    {

        ExePackage Git
        {
            Ensure = 'Present'
            Path = "$RepositoryPath\git\Git-2.20.1-64-bit.exe"
            Arguments = "/SP- /VERYSILENT /SUPPRESSMSGBOXES  /NORESTART /LOADINF='$RepositoryPath\git\setup.inf'"
            Name = 'Git version 2.20.1'
            Version = '2.20.1'

        }
    }

}

[string] $Root = [System.IO.Path]::GetPathRoot($PSScriptRoot)
ExePackageSetup -RepositoryPath "$Root\sources" -LogDirectory $env:TEMP
Start-DscConfiguration -Wait -Force -Path .\ExePackageSetup -Verbose

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published