Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nsis: How do I create a start menu shortcut to open a folder?

Tags:

nsis

My NSIS installer creates Start Menu links to run and uninstall my application.

Using NSIS, how do I create StartMenu shortcut to open a folder in Windows Explorer?

like image 447
Mark Beckwith Avatar asked May 20 '09 22:05

Mark Beckwith


People also ask

How do you compile NSIS?

nsi file by simply right-clicking on it in Explorer and selecting 'compile'. If you want to use MakeNSIS on the command line, the syntax of makensis is: makensis [ option | script.

What is a NSIS script?

Nullsoft Scriptable Install System (NSIS) is a script-driven installer authoring tool for Microsoft Windows backed by Nullsoft, the creators of Winamp. NSIS is released under a combination of free software licenses, primarily the zlib license.


1 Answers

the same as any other shortcut

CreateShortcut "$smprograms\my app\my shortcut.lnk" "c:\path\to\folder"

this is explorer 99% of the time, and its really what you want, but if you want to force explorer

CreateShortcut "$smprograms\my app\my shortcut.lnk" "$windir\explorer.exe" '/e,"c:\path\to\folder"'

but that shortcut will have the wrong icon etc

like image 122
Anders Avatar answered Nov 15 '22 12:11

Anders