Skip to content
⌘ NSIS Forum Archive

CreateShortCut Command Line Option

3 posts

Ahriman#

CreateShortCut Command Line Option

How would a create a shortcut with a command line option... example "MyApp.exe" -nc -f
deguix#
You need to handle those parameters so they have a meaning.

You can do this by using Get Command Line Parameters function from Appendix B: Useful Functions part of the documentation.

To get just one part of the string returned by the function, I recommend you to use WordFind from Archive or ${StrTok} from StrFunc.nsh.

To create a shortcut with that information (I think you already know), you can use CreateShortCut to do the job.