1

在 InnoSetup 中有两个常量:{commonstartmenu} 和 {userstartmenu},扩展为“C:\ProgramData\Microsoft\Windows\Start Menu”和“C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start菜单”分别在我的 Windows 7 下的 PC 上。

我可以简单地将“\ Programs”字符串添加到它们以获取通用和用户开始菜单的所有程序文件夹的路径吗?是否保证开始菜单的所有程序文件夹命名为“\ Programs”?如果没有,我怎样才能获得它的名字?

4

1 回答 1

2

No, you cannot assume that it is named "Programs".

{commonprograms} is the correct constant to use if you want to refer to "Programs" / "All Programs" directly.

However if you want to install more than one shortcut then it is better to use {group} and DefaultGroupName as RobeN suggested.

于 2014-02-12T20:51:34.137 回答