OK, here's what I'd like to be able to accomplish. Currently I have a function (below) that will allow me to update an application based on variables I call from the function. But I would like to be able to store the entries in a text file and have the function read the text file instead. That way the end user can update the file I don't have to create a new function call for each updated application. I have provided a sample of the text file format I would like to use. I hope I've explained it well enough.
Thanks!
Code:
Function AppUpdate($DisplayName,$originalfilename,$originalpath,$updatefilename,$updatepath)
$NetApp = $updatepath + "\" + $updatefilename
$LocalApp = $originalpath + "\" + $originalfilename
If Exist($LocalApp)
; $lblStatus.Text = "Checking for " + $DisplayName + "..."
$NetVer = GetFileVersion($updatefilename,"FileVersion")
; $lblStatus.Text = "Checking " + $DisplayName + "Version..."
$LocalVer = GetFileVersion($originalfilename,"FileVersion")
If $LocalVer <> $NetVer
; $lblStatus.Text = "Updating " + $DisplayName + ", please be patient..."
Copy $NetApp $LocalApp /h /r /c
; LogInfo("\\server1\itdept\mfg\install logs\" + $DisplayName + ".csv","@DATE,@TIME,@WKSTA,@USERID,$CurrentIP,Old Version: $LocalVer,New Version: $NetVer")
; $lblStatus.Text = "MFG Applications Updated..."
Sleep 0.5
EndIf
EndIf
EndFunction
AppUpdate("Test Application Update","TestApp.exe","%programfiles%\testapp","TestApp.exe","\\server1\updatedexes")
Here's the FloorUpdate.ini file
Quote:
Test Application Update,testapp.exe,%programfiles%\testapp,testapp.exe,\\server1\updatedexes
Notepad,notepad.exe,%windir%,notepad.exe,\\server2\testapp\new2