简体   繁体   English

使用NSIS设计简单的UI来控制应用程序

[英]Using NSIS for designing a Simple UI to control Application

I need to design a simple UI for Windows platform with a few buttons like Start server, Stop server, Launch client, Check for updates etc. This UI will front end batch scripts so that users don't have to look for specific batch scripts to run. 我需要为Windows平台设计一个简单的UI,其中包含一些按钮,例如“启动服务器”,“停止服务器”,“启动客户端”,“检查更新”等。此UI将是前端批处理脚本,因此用户不必查找特定的批处理脚本即可跑。

I am already using NSIS for installation of the software and find it pretty cool and easy to use. 我已经在使用NSIS来安装软件,并且发现它非常酷并且易于使用。 I am considering using NSIS to design this simple UI so I do not have to write a lot of Win SDK code. 我正在考虑使用NSIS设计这个简单的UI,因此不必编写很多Win SDK代码。

Will it be a bad idea to create this front end using NSIS just because NSIS is primarily used for creating installers? 仅因为NSIS主要用于创建安装程序而使用NSIS创建此前端不是一个好主意吗?

Is there something as easy as designing the simple window with buttons? 有没有设计带有按钮的简单窗口一样简单的事情?

I also have one concern. 我也有一个顾虑。 While an NSIS installer is running can it block another unrelated installer from running. NSIS安装程序在运行时会阻止另一个不相关的安装程序运行。 I don't want my UI to block other installations from happening while it is running. 我不希望我的UI在运行时阻止其他安装。

Creating applications with NSIS/ nsDialogs is OK for simple little things, I have done it myself several times. 对于简单的小事情,使用NSIS / nsDialogs创建应用程序是可以的,我自己做了几次。 It should not block other installers but it does try to prevent reboots... 它不应阻止其他安装程序,但会尝试阻止重新启动...

You could also take a look at AutoHotKey or create a HTA application . 您还可以查看AutoHotKey或创建HTA应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM