inno脚本安装程序中的Post Install替代方法 [英] Post Install alternative in inno Script Installer

查看:112
本文介绍了inno脚本安装程序中的Post Install替代方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Inno Setup来构建安装程序.我想强迫用户在安装结束时安装驱动程序.我的驱动程序安装将提示用户重新启动计算机.
如果我在[运行]部分中使用安装后标志,则可以实现,但是在这里,我为用户提供了一个选项来决定是否安装.我不想给用户该选项.

如果我没有使用安装后标志,则将安装驱动程序并提示用户在应用程序未完全安装并配置一些系统设置之前重新启动计算机.

那我怎样才能达到我的要求呢?我赞赏一个好建议.提前致谢.

如何在安装结束时安装驱动程序,而又没有给用户选择安装或不安装天气的选项?


问候,

Saji

I am using Inno Setup to build installer. I want to force user to install driver at the end of installation. My driver installation will prompt the user to restart the machine.
If i use Post Install Flag in [Run] section, i am able to achieve it, but here i am giving an option for the user to decide whether to install or not. I dont want to give user that option.

If i am not using Post install Flag, my driver gets installed and prompts user to restart the machine before my application gets completely installed and configures few system settings.

So how can i achieve my requirement? I appreciate a good suggestion. Thanks in advance.

how do i install driver at the end of installation, with out giving user an option to decide weather to install or not?


Regards,

Saji

推荐答案

如果您从批处理文件启动安装程序并等待其完成,然后又不提示用户就开始驱动程序安装(同样从批处理)怎么办?当然,您仍然希望通过某种反馈向用户显示您正在做某事.

如果所有这些操作都是通过CD进行的,那么拥有一个额外的批处理文件将不会有什么坏处.唯一的问题是,如果您尝试使安装程序成为单个可执行文件(不确定这是否是您要执行的操作).
What if you start the installer from a batch file and wait for it to finish then start the driver installation (again from the batch) without prompting the user? Of course, you would want to still show the user you''re doing something with some sort of feedback.

If all this is done from a CD, having an extra batch file wouldn''t hurt. Only issue would be if you tried to have the installer be a single executable (not sure if that''s what you''re trying to do).


对于您的需求至关重要如果应用程序已安装了该驱动程序,则另一种可能的解决方案可能是应用程序本身在首次运行时检查驱动程序是否已安装(通过查看注册表来进行检查),如果未安装该驱动程序,则以编程方式启动安装程序从您的应用程序.安装后,您可以通过在注册表中放置一些安装令牌来使启动更快,这样您就不必下次寻找驱动程序了.
If it is critical for your app to have that driver installed, another possible solution might be for the application itself to check if the driver is installed when it is first run (do this by looking at the registry), and if the driver is not installed, launch the installer programmatically from your application. After the installation, you can make the startup faster by placing some install token in the registry so you don''t have to look for the driver next time.


这篇关于inno脚本安装程序中的Post Install替代方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆