执行运行时生成的文件
NSIS 设置仍在进行中。
问题是现在我在“主”设置期间执行 NSIS 可执行文件。我正在执行的其他设置会自行生成卸载程序。当我在主设置中执行卸载程序时,我想调用那些生成的卸载程序文件。
我正在使用 nsExec::ExecToLog 执行执行,但如果可执行文件不是来自 .exe 解压缩的文件,您将无法执行它。我说得对吗?有什么办法可以解决这个问题吗?
我非常感谢每一个答案!
Still in progress with NSIS Setup.
The thing is now I´m executing NSIS executables during my "main" setup. Those other setups, which I´m executing, generate uninstaller for themselve. When I´m performing the uninstaller in the main setup I would like to call those generated uninstaller files.
I´m doing the execution with nsExec::ExecToLog but if a executable is not from the decompressed from the .exe you won´t be able to execute it. Am I right? Is there any solution to solve this problem?
I´m very grateful for every answer!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 nsExec::ExecToLog 与您喜欢的任何内容一起使用。
它可以被提取:
它可以是一条已知的路径:
它可以被计算:
这真的不重要。就脚本而言,它纯粹是要执行的命令字符串。
You can use
nsExec::ExecToLog
with whatever you like.It could be extracted:
It could be a path already known:
It could be calculated:
It really doesn't matter. As far as the script is concerned, it's purely a command string to execute.