![]() ' True means that the program needs to exit because: the autoupdate did the update ' "'" (chr(39)) start a line comment (like vb) ' if the second parameter is "delete" the system try to delete the file ' file alredy exists and "don't" upgrade if exists. ' if the second parameter is an interrogation mark (?) the update checks if the ' if the version is specified the update checks the version ' if the second parameter is not specified the file is updated. ' from the second line to the end the second parameter is optional ' The first line should be the current program/version Private m_ErrorMessage As String = "There was a problem runing the Auto Update." Private m_UpdateFileName As String = "Update.txt" You also can change the default properties before the call. After that, you just need to call the UpdateFiles function. ![]() You can add the module to your project, or you can add a reference to the DLL. Inside the program folder, you save the files that you want to update and the file Update.txt (or the name that you defined in the UpdateFileName property) with the layout explained above. Each sub folder should be named as the assembly name (normally, the program name without the extension). The root folder is the one that you will refer on the RemotePath variable. The auto update web folder should have a folder for each system you want to upgrade. ![]() The UpdateFiles function returns True if the AutoUpdate did the update or there was an error during the update, or False if nothing was done. "'" ( chr(39)) starts a line comment (like VB).If the second parameter is "delete", the system tries to delete the file.If the second parameter is an interrogation mark (?), the update checks if the file already exists, and "doesn't" upgrade if it exists.If the version is specified, the update checks the version.If the second parameter is not specified, the file is updated.From the second line to the end, the second parameter is optional.The first line should be the current program/version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |