如何在 Inno 设置中更改鼠标光标?
我使用 Inno 安装程序创建了一个安装程序,在安装过程中,我进行了一些冗长的操作来检查系统上的某些值(注册表项、一些文件...),在此期间没有向用户显示任何界面,我执行了所有操作这在InitializeSetup函数中。
我想知道的是,在进行所有这些检查时是否可以更改鼠标指针,以便用户知道正在发生某些事情。
我想我可以创建一个dll并从inno调用dll内的函数来更改光标,但我不想制作一个单独的dll,我在想是否有一种方法可以仅使用pascal脚本来做到这一点。
感谢您的帮助。
I created a setup using Inno installer, during the setup, I made some lengthly operations to check certain values over the system (registry keys, some files...) and during that time no interface is displayed to the user, I do all of this inside InitializeSetup function.
What I would like to know is if I can change the mouse pointer while I'm doing all of those checks, so the user knows that something is happening.
I think I can create a dll and call from inno the functions inside the dll that change the cursor, but I don't want to make a separate dll, I was wandering if there is a way to do it just using pascal scripting.
Thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
也许 Inno Setup 的最新版本中发生了一些变化,但我无法从 Mirtheil 那里得到答案来工作。
相反,我想出了这个:
设置沙漏光标:
重置沙漏光标:
希望这对某人有帮助!
Maybe something changed in recent versions of Inno Setup but I could not get the answer from Mirtheil to work.
Instead I figured out this one:
Set an hourglass cursor:
Reset the hourglass cursor:
Hope this helps someone!
取自: http://www.vincenzo.net/isxkb/index.php?title=Cursor_-_Change_the_mouse_cursor_of_WizardForm
并将其设置为沙漏:
将其设置回正常状态:
Taken from: http://www.vincenzo.net/isxkb/index.php?title=Cursor_-_Change_the_mouse_cursor_of_WizardForm
And to set it to the hourglass:
To set it back to normal:
结合 @mirtheil 和 @Sirp 的答案中的好部分,这是我认为的最佳解决方案:
设置沙漏光标:
重置默认光标:
Combining the good parts from the answers by @mirtheil and @Sirp, this is imo the optimal solution:
Set the hourglass cursor:
Reset the default cursor: