Unique Problem with Program Version

0

We are using an application that isn't installed but simply extracted and setup as a service so there are no registry entries. I want to track the version installed so when new ones come out, I can keep it up to date but the publisher, in their infinite wisdom, decided to not include a version in the .exe file. What would be your best recommendation for tracking versions in this scenario? What I have done is setup a text file with the version as the name (#.#.#.txt) in the program directory and setup a file scan for that file. I then setup dynamic groups based on that file name. I also setup a custom variable for the current version. However, it makes it hard to setup a dynamic group for computers with the old version as I can't use "version less than".

Cancel
login to comment
0

We use file hash for this type of app deployment.

[string]$Latest_App_Hash = 'your_app_hash'

$Current_APP_Hash = (Get-Filehash $your_app.exe).Hash
          
   if ($Current_APP_Hash -eq $Latest_App_Hash) 

{

Write-Output "This is the latest version"

}

else {

Copy-Item -Path "$UNC\file.exe" --Destination "$your_app_path" -Force -Verbose 

}
Cancel
login to comment

Reply