问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/48027881/how-can-i-create-a-symbolic-link-with-inno-setup