gpt4 book ai didi

inno-setup - 将开始菜单文件夹作为子目录 - Inno Setup

转载 作者:行者123 更新时间:2023-12-02 19:31:56 34 4
gpt4 key购买 nike

我想在开始菜单中添加我的程序的快捷方式,如下所示:

MyAppPublisher\MyAppName\MyAppName

我的脚本中有这个:

DefaultGroupName={#MyAppPublisher}
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"

但开始菜单文件夹始终是:

MyAppName\MyAppName

有什么想法吗?

最佳答案

这就像在 [Icons] 条目的 Name 参数中指定此路径一样简单部分。您当前的脚本创建一个类似于 MyAppPublisher\MyAppName 的快捷方式,这个将满足您的需要:

#define MyAppName "MyAppName"
#define MyAppExeName "MyProg.exe"
#define MyAppPublisher "MyAppPublisher"

[Setup]
AppName={#MyAppName}
AppVersion=1.5
DefaultDirName={pf}\My Program
DefaultGroupName={#MyAppPublisher}
OutputDir=userdocs:Inno Setup Examples Output

[Files]
Source: "{#MyAppExeName}"; DestDir: "{app}"

[Icons]
; notice the full path to the created shortcut, {group} is taken from the Select
; Start Menu Folder page edit box (if shown), which is by default taken from the
; DefaultGroupName directive value; this start menu folder path is then followed
; by the tail of the shortcut path
Name: "{group}\{#MyAppName}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"

关于inno-setup - 将开始菜单文件夹作为子目录 - Inno Setup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15000979/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com