简体   繁体   English

如何在目标机器上重现 Inno Setup 中的符号链接?

[英]How can I reproduce symbolic link in Inno Setup on the target machine?

I include a symbolic link from the source machine into Inno Setup.我将源机器的符号链接包含到 Inno Setup 中。 When running the installer on the target machine, it deploys a copy of the source file in place of the symbolic link.在目标机器上运行安装程序时,它会部署源文件的副本来代替符号链接。 How do I make the installer preserve the symbolic links?如何让安装程序保留符号链接?

[Files]
Source: "c:\source path*"; Excludes:"*.log"; DestDir: "C:\destination path"; \
    Flags: ignoreversion recursesubdirs createallsubdirs

You cannot "install" a symbolic link using the Files section.您不能使用“ Files部分“安装”符号链接。 Inno Setup does not support symlinks. Inno Setup 不支持符号链接。

You have to create the link explicitly on the target machine.您必须在目标机器上显式创建链接。 For that, see How can I create a symbolic link with Inno Setup?为此,请参阅如何使用 Inno Setup 创建符号链接?

To avoid installing the symlinked file twice, you may need to exclude it from the installation using the Excludes parameter .为避免两次安装符号链接文件,您可能需要使用Excludes 参数将其从安装中Excludes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何以编程方式访问 Windows 符号链接的目标路径? - How do I programmatically access the target path of a windows symbolic link? 如何将目录符号链接复制为指向目标的链接? - How to copy directory symbolic link as a link to the target? 如何在Inno Setup中引用文件关联的自定义图标? - How can I reference a custom icon for a file association in Inno Setup? Windows 符号链接目标 - windows symbolic link target 在Windows中更改符号链接的目标 - Change target for symbolic link in windows 如何检查目录符号链接的目标是否存在? - How to check whether the target of a directory symbolic link exists? 如何通过Inno Setup从注册表获取Adobe Extension Manager应用程序路径? - How can I get Adobe Extension Manager application path from registry through Inno Setup? 如何根据命令行参数在 Inno Setup 中提示重新启动? - How can I prompt restart in Inno Setup based off command line argument? Inno设置 - 如何在安装Google Chrome时告知安装,它应该打开stackoverflow.com? - Inno Setup - How can I tell the installation when it execute Google Chrome, it should open stackoverflow.com? 我可以使用 Inno Setup 为 Java 应用程序创建独立的 .exe 安装程序吗? - Can I create a standalone .exe installer for a Java application with Inno Setup?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM