未创建启动文件夹快捷方式

Startup folder shortcut not created

这是我的 inno 安装脚本的一部分:

[Setup]
PrivilegesRequired=admin

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commonstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"

当我打开启动文件夹 Win+R 并键入 "shell:startup" 时,设置完成后没有创建该文件夹。虽然创建了正常的程序文件夹。据我了解,要修改 commonstartup,需要管理员权限,我已经在安装程序中添加了这个条目,但仍然无法正常工作。有人知道为什么以及如何解决这个问题吗?

编辑:好的,我尝试使用 {userstartup} 然后它起作用了。所以我的问题是为什么 commonstartup 不能工作?

shell:startup 打开用户的 "startup" 文件夹,而不是普通文件夹。

要打开常用的,请使用shell:common startup