Home > Back-end >  How to prompt "software has the new version, and then automatically link to the new version of
How to prompt "software has the new version, and then automatically link to the new version of

Time:10-02

The problem is this:
Our company have the upstairs downstairs, there are a lot of people, including a program that may be updated, I want to implement such a feature: client when open the program is running, when a new version of the program will prompt "there is a new version of" window, and automatically link to the program download path sharing (LAN), and the old version can't normal open and use!
Be urgent!!!!!! thank you

CodePudding user response:

Before the company's practice:
Has two procedures, one is the update. Exe, one is the main. Exe,
Running is the update. Exe, the purpose of this program is to determine the main. Exe whether this file on the local and server (mainly files to date), if not the same, just copy the file on the server to overwrite a local file, final implementation main. Exe,

CodePudding user response:

Then way upstairs, if you want to download user manual, is to run check function, if the function to False (not the latest version), will pop up a custom Form (similar to that in showmessage, the purpose is to do a hyperlink) click on the determination of dialog button to close the program (can also after the hyperlinks to click to open the link address is also close the program)

CodePudding user response:

In the configuration file written to old files reading configuration files can't be used if it is 0 if it is 1 ~ will be used

CodePudding user response:

Database to add the version number, the local ini Settings version number, landed figure out whether the version number in the database as well as the local version number, is not the same as update

CodePudding user response:

reference huaipiqi_net reply: 3/f
in the configuration file written to old files reading configuration files can't be used if it is 0 if it is 1 can use ~

I've been like this, but I'm more time, and the server, open to update the program,

CodePudding user response:

I use two executable files:
1, in the database, set up the system updated date;
2, the implementation of the Main. Exe, check whether local updated date & lt; System updated,
3, if the update date & lt; System updated, arouse autodown. Exe;
4, autodown. Exe, the download is complete callback Main. Exe,
Complete the automatic download,
  • Related