2

Using Inno Setup, is there any way to create a symbolic link from one directory in my {app} folder to another? For example:

{app}\MySymbolicLink => {app}\MyLinkedFolder

Walt D
  • 4,491
  • 6
  • 33
  • 43

1 Answers1

2

The easiest is to invoke the mklink:

[Run]
Filename: "{cmd}"; \
    Parameters: "/C mklink /D ""{app}\MySymbolicLink"" ""{app}\MyLinkedFolder"""

You can also call CreateSymbolicLink from [Code] section.

Similarly to how CreateHardLink is called in Create a hardlink with Inno Setup.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
  • Ah, I didn't realize it was so easy to invoke the command prompt from Inno Setup. Thanks for your help! – Walt D Dec 30 '17 at 01:06