In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how NSIS uses the installation interface made by Qt to make the installation package interaction". In the daily operation, it is believed that many people have doubts about how NSIS uses the installation interface made by Qt to make the installation package interaction. The editor consulted all kinds of materials and sorted out simple and useful operation methods. I hope it will be helpful to answer the question of "how NSIS uses the installation interface made by Qt to make the installation package interaction"! Next, please follow the editor to study!
Pay attention
Qt is used to make the interface, the logic can be done first, but the logic of the button in the NSIS plug-in source code will be ui. Call, so the logic will also need to be migrated.
Introduction to the layout of plug-in project
The whole project of adopts the form of plug-in
Entry to the Qt program
is actually similar to the dll call, putting the Qt call into the NSIS plug-in (author: msvc2017x32 version):
Interaction between Qt programs and NSIS: Qt calls NSIS
needs to associate functions in the plug-in (nsis plug-in code) in Nsis. $0room9 and $R0~$R9 are built-in variables in NSIS and are used without declaration. $0 is a callback function that temporarily stores the address:
Interaction between Qt programs and NSIS: NSIS sets Qt
NSISAPI function in the plug-in to set the installation path to Qt:
Interaction between Qt programs and NSIS: NSIS gets the installation path of Qt settings
Interaction between Qt programs and NSIS: NSIS executes different functions through Qt parameters
sees the execution of the event in the code in the Qt section
finds the predefined event code in the plug-in code sees the keyword in the NSIS script (add: starting with $there are also some built-in variables or constants such as path or handle, such as $HWNDPARENT, $PROGRAMFILES, $INSTDIR, $EXEDIR, $WINDIR, etc.). ).
Demo installation process
Recent installation of the start menu
Start menu corresponding folder
Desktop shortcut
At this point, the study on "how NSIS uses the installation interface made by Qt to make the installation package interaction" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.