[英]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.