windows 使用 innosetup 在开始菜单中创建快捷方式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1839153/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Make shortcut in start menu with innosetup
提问by Memb
I made an installer using the ISTool wizard and everything is fine. Under my program name in the start menu, I have
我使用 ISTool 向导制作了一个安装程序,一切都很好。在开始菜单中我的程序名称下,我有
MyApp
MyApp Help
MyApp
MyApp 帮助
Now, I want to add 2 more entries that are identical to the first (MyApp) but that passes a command line argument to the executable
现在,我想再添加 2 个与第一个(MyApp)相同的条目,但将命令行参数传递给可执行文件
MyApp
MyApp (Console Mode)
MyApp (Remote Admin Mode)
MyApp Help
MyApp
MyApp(控制台模式)
MyApp(远程管理模式)
MyApp 帮助
Should I make batch files and add them (how do I assign an icon to a .bat) or is there some sort of built in system to do this in inno?
我应该制作批处理文件并添加它们(如何将图标分配给 .bat)还是有某种内置系统可以在 inno 中执行此操作?
采纳答案by Anders
Just add more shortcut entries
只需添加更多快捷方式条目
[Icons]
Name: "{group}\MyApp (Console Mode)"; Filename: "{app}\MYPROG.EXE"; Parameters: "/console"