1

I include a symbolic link from the source machine into 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
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Sahar Raz
  • 11
  • 4

1 Answers1

0

You cannot "install" a symbolic link using the Files section. Inno Setup does not support symlinks.

You have to create the link explicitly on the target machine. For that, see How can I create a symbolic link with Inno Setup?

To avoid installing the symlinked file twice, you may need to exclude it from the installation using the Excludes parameter.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992