6 [Parameter
(Mandatory
=$true, Position
=0)]
12 $versionInfo = (Get-Item "$ExePath").VersionInfo
14 # Generate the app version - the build number (MS calls it revision) is always 0 because the Windows Store requires that
15 $AppVersion = "$($versionInfo.FileMajorPart).$($versionInfo.FileMinorPart).$($versionInfo.FileBuildPart).0"
17 Write-Output "SET OTTD_VERSION=$($AppVersion)"
21 Write-Output "@ECHO Error retrieving EXE version - did you provide a path?"