-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cat
committed
Jun 21, 2022
1 parent
a83be58
commit 25d114b
Showing
3 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,66 @@ | ||
# NsCatGrayQt-Plugin | ||
About Create NSIS Modern UI Setup by Using Thirdparty UI Library(Qt) | ||
[>>> 中文](README_ch.md) | ||
|
||
# Introduction | ||
|
||
Provides a way to create a beautiful, modern Windows platform installation interface. | ||
|
||
Based on Nsis+Qt complete, provide QWidgets,Quick implementation cases. | ||
|
||
**NsCatGrayQt-Plugin structure** | ||
|
||
![NsCatGrayQt-Plugin structure](./Algorithm/CatSoftwareStarterStructure.png) | ||
|
||
[Reference Item](https://github.com/winsoft666/NSIS-UI-Plugin) | ||
Innovation and improvement on the shoulders of giants! | ||
|
||
--- | ||
|
||
**NSIS** | ||
|
||
Individual from [https://nsis.sourceforge.io/Download](https://nsis.sourceforge.io/Download) Download and install NSIS, add the system environment variable 'NSIS_DIR' to the NSIS installation directory. | ||
|
||
**Qt** | ||
|
||
Because plug-ins use Qt as the interface library by default, you need to install Qt. | ||
|
||
The Qt installation package will add the 'QTDIR' environment variable to the installation directory by default. If it is not added automatically, you need to add it manually. | ||
|
||
--- | ||
|
||
# Get Started | ||
|
||
**Directory description** | ||
|
||
```txt | ||
CatQtPlugins -- Quick, QWidget code example | ||
VCRuntimeDLL -- Place VC++ runtime library files (Debug and Release), Qt interface library is compiled in MD mode by default, runtime needs to rely on VC++ runtime library | ||
Include -- Custom Nsis header files | ||
module -- Provide cmake module, NSIS installation function to generate scripts | ||
NsCatGrayQtCore -- C++ and nsis interaction low-level implementation | ||
Examples -- Nsis script package cases | ||
``` | ||
|
||
**Compile** | ||
|
||
Compilation support CMake, Qmake, can directly compile nSCATgrayqt-plugin directory CMake and Qmake project. DLL ', 'qtQuickPlugin.dll' Release: 'qtwidgetplugin.dll', 'qtQuickplugin.dll') | ||
|
||
|
||
**Use python scripts to generate nSIS install and uninstall functions** | ||
|
||
```txt | ||
// module/python/ExtractFiles.py | ||
ExtractFiles.py [-h] [--builddir BUILDDIR] [--safeuninstall] [--outdir OUTDIR] | ||
ExtractFiles.py' '--builddir' './' '--safeuninstall' | ||
--builddir BUILDDIR Nsis package directory | ||
--safeuninstall Whether the Nsis script is unloaded in safe mode | ||
--outdir OUTDIR Nsis script output path | ||
``` | ||
|
||
Using the ExtractFiles script will generate the CatGrayBuildFunc. NSH module (install and uninstall functions) | ||
|
||
![build_CatGrayBuildFunc](./Algorithm/20220621_174108.gif) | ||
|
||
# Demonstration | ||
|
||
![Algorithm_0](./Algorithm/20220618_111700.gif) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters