CN109375927A - Method, system, server and the storage medium of window application starting are realized using Qt - Google Patents
Method, system, server and the storage medium of window application starting are realized using Qt Download PDFInfo
- Publication number
- CN109375927A CN109375927A CN201811256941.6A CN201811256941A CN109375927A CN 109375927 A CN109375927 A CN 109375927A CN 201811256941 A CN201811256941 A CN 201811256941A CN 109375927 A CN109375927 A CN 109375927A
- Authority
- CN
- China
- Prior art keywords
- application program
- starting
- application
- installation
- windows system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000003860 storage Methods 0.000 title claims abstract description 18
- 238000009434 installation Methods 0.000 claims description 42
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 9
- 238000012790 confirmation Methods 0.000 claims description 6
- 238000011161 development Methods 0.000 claims description 5
- 239000007858 starting material Substances 0.000 claims description 2
- 230000006870 function Effects 0.000 description 23
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000000155 isotopic effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000002574 poison Substances 0.000 description 1
- 231100000614 poison Toxicity 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Abstract
The present invention relates to a kind of method, system, server and storage mediums that window application starting is realized using Qt, after this method determines application program installation condition by Windows system, it obtains application program and starting is installed, it realizes and directly initiates or download specified other applications in the application program being currently running, so that more convenient operation.
Description
Technical field
The present invention relates to Internet PC client application development technique fields, and in particular to a kind of to be realized using Qt
Method, system, server and the storage medium of window application starting.
Background technique
With internet development, user demand is continuously improved, and proposes higher more easily demand to the use of computer,
When user is when using computer, it is often necessary to directly initiate or download other specified in application program currently in use
Application program, without user find other applications and double-click by way of or search downloading corresponding web page carry out
Downloading.But judges whether Windows system installs other applications in application program currently in use, pass through simultaneously
Windows system directly runs program, and how to be directly downloaded by download link to application, is current technology ratio
Relatively difficult to achieve.
Summary of the invention
In view of the problems existing in the prior art, Windows application journey is realized using Qt the object of the present invention is to provide a kind of
Method, system, server and the storage medium of sequence starting, for realizing the application program being currently running by Windows system
In directly initiate or download specified other applications, start operation after installation.
To achieve the goals above, the technical solution adopted by the present invention is a kind of using Qt realization window application
The method of starting, the described method comprises the following steps:
S1, the digit for distinguishing Windows system, and the peace of the Windows system acquisition application program by confirmation digit
Dress state;
S2, installation is performed corresponding processing according to the installation condition of the application program of acquisition;
Application program after S3, starting installation.
In the above-mentioned technical solutions, it in the step S1, is compiled by the application program that dynamic link library Kernel32 is provided
Journey interface API distinguishes the digit of Windows system, and the digit of the Windows system includes 32-bit operating system and 64 be behaviour
Make system.
In the above-mentioned technical solutions, by searching for the unloading information of registration table in Windows operating system, judge using journey
The path of the installation condition of sequence, the different operating system write-in registration table is different.
In the above-mentioned technical solutions, it is described obtain application program installation condition the following steps are included:
S11, the installation path keyword by being saved in Windows system registry, if finding out the installation of application program
Catalogue, then the Windows system has installed application program;
S12, application program download link is searched, if finding out the lower published article of application program latest edition in download path
Part, then the Windows system has been downloaded application program but has not been installed;
If the relevant information of application program, the Windows are not all found in S13, above-mentioned steps S11 and step S12
System does not download application program.
In the above-mentioned technical solutions, the step S2 the following steps are included:
If S21, application program have been downloaded but do not installed, executes operation, path and accordingly by the way that Windows system is incoming
Parameter starting installation application program;
If S22, application program have been installed, application program is started by incoming operation, path and the relevant parameter of executing;
If S23, application program are not downloaded, downloading is realized by the network access manager that Qt Development Framework provides.
In the above-mentioned technical solutions, the step S23 the following steps are included:
S231, creation network access management object, are used for network sending application program download request;
S232, all data for needing the application program downloaded are returned to by request, receive data and temporary file is written;
S233, it completes data receiver and renames temporary file.
Invention additionally discloses a kind of systems for realizing window application starting using Qt, and the system comprises differentiations
Module obtains module and starting module;
Discriminating module is answered for distinguishing the digit of Windows system, and by the Windows system acquisition of confirmation digit
With the installation condition of program;
Module is obtained, the installation condition for the application program according to acquisition performs corresponding processing installation;
Starting module, for starting the application program after installing.
In the above-mentioned technical solutions, the acquisition module comprises the following modules:
First obtains module, for the installation path keyword by saving in Windows system registry, and passes through institute
The installation directory of application program can be found out by stating keyword, confirm that the Windows system has installed application program;
Second obtains module, for passing through request applications download link, if containing application program in download path
The latest edition title of file is downloaded, then the Windows system has been downloaded application program but do not installed;
Third obtains module, for not finding application program by the information of the first acquisition module and the second acquisition module
Relevant information, then the Windows system does not download application program.
Invention additionally discloses a kind of servers of system that window application starting is realized using Qt, including storage
Device, processor and storage in the memory and the computer program that can run on the processor, the processor
A kind of side that window application starter is realized using Qt described in any of the above-described is realized when executing the computer program
The step of method.
Invention additionally discloses a kind of computer readable storage medium, the computer-readable recording medium storage has computer
Program is realized a kind of using Qt realization Windows application described in any of the above-described when the computer program is executed by processor
The step of method of program launchers.
A kind of method, system, server and storage medium that window application starting is realized using Qt of the present invention,
It has the advantages that and realizes to directly initiate or download in the application program that is currently running by Windows system and specify
Other applications, so that more convenient operation, improves efficiency.
Detailed description of the invention
Fig. 1 is a kind of stream for method that window application starting is realized using Qt that the embodiment of the present invention one provides
Cheng Tu;
Second embodiment of the present invention provides a kind of system module figures that window application starting is realized using Qt by Fig. 2;
Fig. 3 is the structural schematic diagram for the server that the embodiment of the present invention three provides.
Specific embodiment
The present invention provides a kind of method, system, server and storage Jie that window application starting is realized using Qt
Matter.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Present invention embodiment one as shown in Figure 1 provides a kind of method for realizing window application starting using Qt, institute
The method of stating includes the following steps, as shown in Figure 1:
S1, the digit for distinguishing Windows system, and the peace of the Windows system acquisition application program by confirmation digit
Dress state;
Wherein, since applications all in Windows system can leave unloading information in registration table during installation, and own
The installation directory of program can be written in unloading information, by searching for the unloading information of registration table, can judge whether to install
The application program, and the installation directory of described program is obtained, but for the Windows operating system version of not isotopic number, write
The path entered in registration table is different, needs to distinguish Windows system digit.
Optionally, in the step S1, the area application programming interface API that is provided by dynamic link library Kernel32
Divide the digit of Windows system, the digit of the Windows system includes 32-bit operating system and 64 be operating system.
Wherein, the Kernel32.dll is very important 32 dynamic link library files, belongs to kernel level file, it
The memory management of system, the input-output operation of data and interrupt processing are controlled, when Windows starting,
Kernel32.dll is just resident write protected area specific in memory, makes other program that can not occupy this region of memory.
Wherein, the dynamic link is exactly some code (the OBJ program library of static linkage) production often shared
At DLL grades, when executable file is called to function in DLL grades, Windows operating system just can be DLL grades of load stores
In device, DLL grades of structures itself are exactly executable file, when program requirements function is just linked.By dynamic link mode,
The situation of wasted memory can be greatly reduced.Dynamic link library (DLL) usually all cannot directly be run, and can not be received and be disappeared
Breath, they are some independent files, wherein completing comprising that can be called by executable program or other dynamic link libraries (DLL)
The function of a certain work.Only when other modules call the function in dynamic link library (DLL), it just plays a role.But
When dynamic link libraries (DLL) is called by multi-process, dynamic link library (DLL) is accessed in process in dynamic link library (DLL)
When member, system can open up a new data member page for it and provide individual dynamic link libraries (DLL) to access process
Data field.
It can be appreciated that kernel32.dll, most of API of Windows in the system32 file under Window catalogue
It is included in these DLL.Kernel32.dll: main processing memory management and process scheduling.
The API (Application Programming Interface, application programming interface) is some preparatory
The function of definition, it is therefore an objective to which application program and the developer energy that one group of routine of access is able to based on certain software or hardware are provided
Power, and be not necessarily to access source code, or understand the details of internal work mechanism.Windows system passes through kernel32 dynamic link
Library provides corresponding API:IsWow64Process, judges whether application program operates in 64 bit manipulation systems by the API
Under, for 64 application programs, the api interface returns to True, since current Windows system is mainly 32 and 64 behaviour
Make system, therefore Windows system digit can determine whether by the API.By searching for registration table in Windows operating system
Unloading information, judge the installation condition of application program, the path of the different operating system write-in registration table is different.
Optionally, the Windows operating system version of isotopic number, registration table do not save the path difference of unloading information,
In 64 Windows operating systems, registration table path " HKEY_LOCAL_MACHINE SOFTWARE WOW6432Node
Microsoft Windows Current Version Uninstall " save now all of application program installation path,
In 32-bit operating system registration table path " HKEY_CURRENT_USER SOFTWARE Microsoft Windows
CurrentVersion Uninstall " save now all of application program installation path.From 64 Windows operation systems
It is whether mounted using journey in registration table by searching for application program in the system mounted application name list of registration table
In sequence name list, that is, it can determine whether Windows system installed the application program.
Optionally, it is described obtain application program installation condition the following steps are included:
S11, the installation path keyword by being saved in Windows system registry, if finding out the installation of application program
Catalogue, then the Windows system has installed application program;
Optional keyword is InstallLocation.Optionally, numeric data Install Location is saved
Pycharm application program installation path " D: Program Files JetBrains PyCharm Community
Edition 2017.3.4”。
S12, application program download link is searched, if finding out the downloading file of application program latest edition in download path
Then the Windows system has been downloaded application program but has not been installed;
Wherein, the title for obtaining application program downloading file, by request applications download link, when receiving downloading chain
Taking back after packet parses again can be obtained application name.Optionally, when requesting certain using download link, what is received returns packet letter
Breath both can get more recent application program name by the exe title that parsing down_url links end.
Wherein, judge whether application program has been downloaded.It is published papers by judging whether to contain under application program in download path
The title of part, that is, can determine whether application program has been downloaded (can specify default path when program starting, if can be more after user's selection
Newly downloaded path).
Specifically, not using system permission Basic API, that is, applications management person's permission, applications management person's permission are not had to
Windows system has corresponding management person's pop-up, influences user experience.Query safe does not use unsafe system API i.e.
Inquiry can be completed, the mode avoids false drop from killing there is no security software report poison.Rapidly, that is, the data item scanned is or not inquiry
More than 10000, the complexity of search algorithm is in O (n)
If the relevant information of application program, the Windows are not all found in S13, above-mentioned steps S11 and step S12
System does not download application program.
S2, installation is performed corresponding processing according to the installation condition of the application program of acquisition;
Optionally, the step S2 the following steps are included:
If S21, application program have been downloaded but do not installed, executes operation, path and accordingly by the way that Windows system is incoming
Parameter starting installation application program;
If S22, application program have been installed, application program is started by incoming operation, path and the relevant parameter of executing;
Optionally, it when user downloaded but did not installed application program, needs to start installation procedure, be answered when user has installed
It needs to start application program when with program.Both of which be by Windows system by Shellapi dynamic chain
It connects library and provides corresponding API:ShellExecuteA (_ In_opt_HWND hwnd, _ In_opt_LPCSTR
LpOperation, _ In_LPCSTR lpFile, _ In_opt_LPCSTR lpParameters, _ In_opt_LPCSTR
LpDirectory, _ In_INT nShowCmd) it realizes, it can be opened by incoming operation and the path and relevant parameter of executing
Dynamic application program.
Wherein, there are three api function can run executable file WinExec, ShellExecute and
CreateProcess.CreateProcess is because use complicated, fewer use.WinExec mainly runs EXE file.Such as:
WinExec('Notepad.exe Readme.txt',SW_SHOW);HellExecute can not only run EXE file, can also
To run associated file.Shellapi.pas unit: uses ShellAPI must be quoted first;
Wherein normal usage are as follows: ShellExecute function prototype and meaning of parameters are as follows:
function ShellExecute(hWnd:HWND;Operation,FileName,Parameters,
Directory:PChar;ShowCmd:Integer):HINST;stdcall;
HWnd: for specifying parent window handle.When function call process when the error occurs, it will be used as windows messaging
The parent window of window can be set to application main window handle, i.e. Application.Handle, can also be by it
It is set as desktop window handle (being obtained with GetDesktopWindow function).
Operation: for specifying the operation to be carried out.Wherein " open " operation indicates to execute and be referred to by FileName parameter
Fixed program, or open the file or folder specified by FileName parameter;" print " operation indicates printing by FileName
The specified file of parameter;" explore " operation indicates the file that browsing is specified by FileName parameter.When parameter is set as nil
When, it indicates to execute default action " open ".
FileName: for the specified filename to be opened, the program filename to be executed or the folder name to be browsed.
Parameters: if FileName parameter is an executable program, this parameter specifies command line parameter, otherwise
This parameter should be nil or PChar (0).
Directory: for specifying default directory.
ShowCmd: if FileName parameter is an executable program, the initial display of this parameter designated program window
Mode, otherwise this parameter should be set as 0.
If the success of ShellExecute function call, return value is the instance handle for being performed program.If return value is small
In 32, then it represents that mistake occur.
Above-mentioned statement is the normal usage of ShellExecute function, its special method is explained below, described special
Usage are as follows:
If setting " http: " protocol format for FileName parameter, which will open default browser simultaneously
It is linked to the specified address URL.If being mounted with multiple browsers in user's machine, which will be according to Windows 9x/NT
The setting of http protocol handling program (Protocols Handler) determines which browser started in registration table.
Format one: http: // website domain name.Such as: ShellExecute (handle, ' open ', http: //
www.neu.edu.cn',nil,nil,SW_SHOWNORMAL);
Format two: http: // website domain name/web page files name.Such as: ShellExecute (handle, ' open ',
http://www.neu.edu.cn/default.htm',nil,nil,SW_SHOWNORMAL);
If setting " mailt " protocol format for FileName parameter, which will start default mail client
Program, such as Microsoft Outlook (also including Microsoft Outlook Express) or Netscape
Messanger.If being mounted with multiple email clients in user's machine, which will register according to Windows 9x/NT
The setting of mailto protocol handling program determines which email client started in table.
Format one: mailt, such as: ShellExecute (handle, ' open ', ' mailt ', nil, nil, SW_
SHOWNORMAL);Open new mail window.
Two: mailt user account@e-mail server address of format;Such as: ShellExecute (handle, ' open ',
‘mailtwho@mail.neu.edu.cn',nil,nil,SW_SHOWNORMAL);New mail window is opened, and is automatically filled in receipts
Part people address.If specifying multiple addresses of the addressee, must be separated (similarly hereinafter) with branch or comma between address of the addressee.
Three: mailt user account@e-mail server address of format? subject=You Jianzhuti &body=message body,
Such as: ShellExecute (handle, ' open ', ' mailtwho@mail.neu.edu.cn? subject=Hello&Body=
This is a test',nil,nil,SW_SHOWNORMAL);New mail window is opened, and is automatically filled in address of the addressee, postal
Part theme and message body.If message body includes multiline text, line feed, escape word must be added between every style of writing sheet
Accord with %0a.
Example (Delphi):
An application call c: Project1.exe;
ShellExecute (handle, ' open', ' c: Project1.exe', ' word string content ', nil, SW_
SHOWNORMAL);
It can be called in Project1.exe:
That last parameter, for an order of the specified visual aspect of window.It please use any one following constant:
SW_HIDE hide window, active state are enabled a window;SW_MIN IMIZE minimizes window, and active state is enabled one
Window;The original size and location of SW_RESTORE shows a window, and with season, it enters active state;SW_SHOW is used
Current size and location shows a window, and with season, it enters active state;SW_SHOWMAXI MIZED maximizes window
Mouthful, and activated;SW_SHOWMINIMIZED minimizes window, and is activated;SW_SHOWMINNOACTIVE is minimized
One window, while not changing active window;The current size and location of SW_SHOWNA shows a window, does not change work
Dynamic window;The nearest size and location of SW_SHOWNOACTIVATE shows a window, while not changing active window;SW_
SHOWNORMAL is identical as SW_RESTORE;
If S23, application program are not downloaded, downloading is realized by the network access manager that Qt Development Framework provides.
Optionally, the step S23 the following steps are included:
S231, creation network access management object, are used for network sending application program download request;
S232, all data for needing the application program downloaded are returned to by request, receive data and temporary file is written;
S233, it completes data receiver and renames temporary file.
Optionally, download function is realized by the QNetWorkAccessManager class of Qt offer, such allows to apply
Program sends network request and receives network answer.Once QNetworkAccessManager object is created with, apply
Program can use it to send request on network.It provides the function of one group of standard, can be requested and one with bearer network
A little optional data, and each request returns to a QNetworkReply object.The object of the return includes return
Request should band all data.
Wherein, QNetWorkAccessManager is network access manager, is able to achieve internet browsing function and lower published article
Part function, if the example for creating a QNetworkAccessManager class, it is used to send network request and reception is answered
It answers.Then it is associated with finished () signal and customized slot of manager, can all emit this at the end of network answer
A signal.Get () function is used finally to send a network request, network request uses QNetworkRequest class table
Show, get () function returns to a QNetworkReply object.In addition to get () function, manager, which additionally provides, sends HTTP
Post () function of POST request.
QNetworkAccessManager class allows application program to send network request and receives network answer.
Network Access API be all around a QNetworkAccessManager object formation, this
Object includes some generic configurations and setting for sending request.It include agency and caching configuration, and with these things
The relevant some signals of object, and answer signal can be used as us and detect the progress of a network operation.One
It is enough for QNetworkAccessManager Qt application program entire for one.Each is replied
QNetworkReply requires to delete, and otherwise will appear RAM leakage, according to the help document of Qt, in the slot for having received data
It is middle to use deleteLater (), prevent RAM leakage.
Application program after S3, starting installation.
The embodiment of the present invention two also provides a kind of system for realizing window application starting using Qt as described in Figure 2,
The system comprises discriminating module, obtain module and starting module;
Discriminating module is answered for distinguishing the digit of Windows system, and by the Windows system acquisition of confirmation digit
With the installation condition of program;
Module is obtained, the installation condition for the application program according to acquisition performs corresponding processing installation;
Starting module, for starting the application program after installing.
Wherein, the acquisition module comprises the following modules:
First obtains module, for the installation path keyword by saving in Windows system registry, and passes through institute
The installation directory of application program can be found out by stating keyword, confirm that the Windows system has installed application program;
Second obtains module, for passing through request applications download link, if containing application program in download path
The latest edition title of file is downloaded, then the Windows system has been downloaded application program but do not installed;
Third obtains module, for not finding application program by the information of the first acquisition module and the second acquisition module
Relevant information, then the Windows system does not download application program.
The embodiment of the present invention three as shown in Figure 3 provides a kind of system for realizing window application starting using Qt
Server architecture schematic diagram, the server of the embodiment include: processor 30, memory 31 and are stored in the memory
In 31 and the computer program 32 that can be run on the processor 30.When the processor 30 executes the computer program 32
Realize the step in above-mentioned each method embodiment, the processor 30 realizes that above-mentioned apparatus is real when executing the computer program 32
Apply the function of each module in example.
A kind of server of system for being realized window application starting using Qt can be desktop and calculate
Machine, notebook, palm PC and cloud server etc. calculate equipment, it is described it is a kind of using Qt realize window application open
The server of the system of dynamic device may include, but be not limited to, processor 30, memory 31.Fig. 3 is only to show this server
Example, does not constitute the restriction to this server, may include components more more or fewer than diagram, or combine certain components,
Or different components, a kind of server of system that realizing window application starting using Qt can also include
Input-output equipment 33, display equipment 34 etc..
The processor 30 can be central processing unit, can also be other general processors, digital signal processor,
Specific integrated circuit, ready-made programmable gate array or other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 31 can be a kind of server of system that window application starting is realized using Qt
Internal storage unit, hard disk or memory.The memory 31 is also possible to the External memory equipment of the server, or is equipped with
Plug-in type hard disk, intelligent memory card, safe digital card, flash card etc..
Further, the memory 31 can also both include the internal storage unit of the server or deposit including outside
Store up equipment.The memory 31 is for storing other program sum numbers needed for the computer program and the electronic equipment
According to.The memory 31 can be also used for temporarily storing the data that has exported or will export.
The input-output equipment 33 can be used for receiving the number or character information of input, specifically, input and output are set
Standby 33 can also include but is not limited to one of keyboard, mouse, operating stick etc. and a variety of.
The display equipment 34 can be used for showing information input by user or be supplied to user information and terminal
Various menus, display equipment 34 may include display panel, optionally, liquid crystal display can be used.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Those of ordinary skill in the art may be aware that each embodiment described in conjunction with the examples disclosed in this document
Module, method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.Professional technique people
Member can use different methods to achieve the described function each specific application, but this realization is it is not considered that super
The scope of the present invention out.
If the integrated module is realized in the form of software function module and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-described embodiment side
All or part of the process in method can also instruct relevant hardware to complete, the computer by computer program
Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each
The step of a embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can
Think source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can be with
It include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry the computer program code
Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer
The content that readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as
It does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium in certain jurisdictions.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method for realizing window application starting using Qt, which is characterized in that the method includes following steps
It is rapid:
S1, the digit for distinguishing Windows system, and the installation shape of the Windows system acquisition application program by confirmation digit
State;
S2, installation is performed corresponding processing according to the installation condition of the application program of acquisition;
Application program after S3, starting installation.
2. a kind of method for realizing window application starting using Qt according to claim 1, which is characterized in that institute
It states in step S1, the position of Windows system is distinguished by the application programming interface API that dynamic link library Kernel32 is provided
Number, the digit of the Windows system includes 32-bit operating system and 64 be operating system.
3. a kind of method for realizing window application starting using Qt according to claim 2, which is characterized in that logical
The unloading information for searching registration table in Windows operating system is crossed, judges the installation condition of application program, the different operation
The path that registration table is written in system is different.
4. a kind of method for realizing window application starting using Qt according to claim 3, which is characterized in that institute
State obtain application program installation condition the following steps are included:
S11, the installation path keyword by being saved in Windows system registry, if finding out the installation directory of application program,
Then the Windows system has installed application program;
S12, application program download link is searched, if finding out the downloading file of application program latest edition in download path,
The Windows system has been downloaded application program but has not been installed;
If the relevant information of application program is not all found in S13, above-mentioned steps S11 and step S12, the Windows system
Application program is not downloaded.
5. a kind of method for realizing window application starting using Qt according to claim 4, which is characterized in that institute
State step S2 the following steps are included:
If S21, application program have been downloaded but do not installed, operation, path and relevant parameter are executed by the way that Windows system is incoming
Starting installation application program;
If S22, application program have been installed, application program is started by incoming operation, path and the relevant parameter of executing;
If S23, application program are not downloaded, downloading is realized by the network access manager that Qt Development Framework provides.
6. a kind of method for realizing window application starting using Qt according to claim 5, which is characterized in that institute
State step S23 the following steps are included:
S231, creation network access management object, are used for network sending application program download request;
S232, all data for needing the application program downloaded are returned to by request, receive data and temporary file is written;
S233, it completes data receiver and renames temporary file.
7. a kind of system for realizing window application starting using Qt, which is characterized in that the system comprises distinguish mould
Block obtains module and starting module;
Discriminating module for distinguishing the digit of Windows system, and is obtained by the Windows system of confirmation digit and applies journey
The installation condition of sequence;
Module is obtained, the installation condition for the application program according to acquisition performs corresponding processing installation;
Starting module, for starting the application program after installing.
8. a kind of system for realizing window application starting using Qt according to claim 7, which is characterized in that institute
Acquisition module is stated to comprise the following modules:
First obtains module, for the installation path keyword by saving in Windows system registry, and passes through the pass
Key word can find out the installation directory of application program, confirm that the Windows system has installed application program;
Second obtains module, for being downloaded if containing application program in download path by request applications download link
The latest edition title of file, then the Windows system has been downloaded application program but has not been installed;
Third obtains module, for not finding the correlation of application program by the information of the first acquisition module and the second acquisition module
Information, then the Windows system does not download application program.
9. a kind of server for the system that window application starting is realized using Qt, including memory, processor and deposit
Store up the computer program that can be run in the memory and on the processor, which is characterized in that the processor executes
Realization is a kind of as described in any one of claims 1 to 6 when the computer program realizes that window application opens using Qt
The step of method of dynamic device.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization is a kind of as described in any one of claims 1 to 6 when the computer program is executed by processor is realized using Qt
The step of method of window application starter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811256941.6A CN109375927A (en) | 2018-10-26 | 2018-10-26 | Method, system, server and the storage medium of window application starting are realized using Qt |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811256941.6A CN109375927A (en) | 2018-10-26 | 2018-10-26 | Method, system, server and the storage medium of window application starting are realized using Qt |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109375927A true CN109375927A (en) | 2019-02-22 |
Family
ID=65389973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811256941.6A Pending CN109375927A (en) | 2018-10-26 | 2018-10-26 | Method, system, server and the storage medium of window application starting are realized using Qt |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109375927A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114416199A (en) * | 2022-01-07 | 2022-04-29 | 北京百度网讯科技有限公司 | Running method and device of Windows program, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023882A (en) * | 2010-12-22 | 2011-04-20 | 福建天晴在线互动科技有限公司 | System and method for computer to automatically identify mobile phone and install mobile phone driver |
CN104461630A (en) * | 2014-12-09 | 2015-03-25 | 深圳市东信时代信息技术有限公司 | PC terminal and method thereof for installing cellphone driving programs |
CN105138414A (en) * | 2015-08-19 | 2015-12-09 | 北京金山安全软件有限公司 | Computer problem repairing method and device |
WO2017208434A1 (en) * | 2016-06-03 | 2017-12-07 | ヤマハ株式会社 | Information processing device and application management method |
-
2018
- 2018-10-26 CN CN201811256941.6A patent/CN109375927A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023882A (en) * | 2010-12-22 | 2011-04-20 | 福建天晴在线互动科技有限公司 | System and method for computer to automatically identify mobile phone and install mobile phone driver |
CN104461630A (en) * | 2014-12-09 | 2015-03-25 | 深圳市东信时代信息技术有限公司 | PC terminal and method thereof for installing cellphone driving programs |
CN105138414A (en) * | 2015-08-19 | 2015-12-09 | 北京金山安全软件有限公司 | Computer problem repairing method and device |
WO2017208434A1 (en) * | 2016-06-03 | 2017-12-07 | ヤマハ株式会社 | Information processing device and application management method |
Non-Patent Citations (1)
Title |
---|
DIANDU3502: ""Pyqt 获取windows系统中已安装软件列表"", 《HTTPS://BLOG.CSDN.NET/DIANDU3502/ARTICLE/DETAILS/102139898》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114416199A (en) * | 2022-01-07 | 2022-04-29 | 北京百度网讯科技有限公司 | Running method and device of Windows program, electronic equipment and storage medium |
CN114416199B (en) * | 2022-01-07 | 2023-08-11 | 北京百度网讯科技有限公司 | Windows program running method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8572033B2 (en) | Computing environment configuration | |
US10242023B2 (en) | Programming model for synchronizing browser caches across devices and web services | |
US9165047B2 (en) | Data synchronization system and method | |
US8438251B2 (en) | Methods and systems for implementing a virtual storage network | |
US8448160B2 (en) | Application programming interface for identifying, downloading and installing applicable software updates | |
US5987517A (en) | System having a library of protocol independent reentrant network interface functions for providing common calling interface for communication and application protocols | |
US7117504B2 (en) | Application program interface that enables communication for a network software platform | |
US10257110B2 (en) | Using a template to update a stack of resources | |
US20060069712A1 (en) | System and method providing multi-tier applications architecture | |
JP4351636B2 (en) | Synchronization method | |
CA2298003A1 (en) | Scripting task-level user interfaces | |
WO2010127552A1 (en) | Service-oriented application system and communicating method, creator and creating method thereof | |
US7331047B2 (en) | Deterministic system and method for implementing software distributed between a desktop and a remote device | |
US8600960B2 (en) | Processing proposed changes to data | |
CN114586005A (en) | System and method for hosting another browser within a browser | |
CN102135895A (en) | System upgrading method and system | |
US8463744B2 (en) | Method and system for synchronizing data | |
US20100318967A1 (en) | Supplementary deployment actions | |
US20050131862A1 (en) | Web store events | |
CN109375927A (en) | Method, system, server and the storage medium of window application starting are realized using Qt | |
WO2023273028A1 (en) | Transaction processing method and related product | |
Cisco | Cisco IP Manager 2.0(40) Release Notes | |
US7370051B2 (en) | Database driven type extensibility | |
CN106843851A (en) | Implementation method and device based on ActiveMQ isomery Classloader unserializings | |
CN102184112A (en) | Method and device for upgrading widget |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190222 |
|
RJ01 | Rejection of invention patent application after publication |