updater.psm1
class Updater { static [Version]$Version = (Import-PowerShellDataFile "$([Environment]::CurrentDirectory)\PSDllCompiler.psd1").ModuleVersion static [bool] UpdateAvailable() { if ((Find-Module PSDllCompiler).Version -gt [Updater]::Version) {return $true} return $false } } |