Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Unique Problem with Program Version

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".

0

Comments

1 comment
Date Votes
  • 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 
    
    }
    
    0