Nsis: How to create a start menu shortcut to open a folder?

My NSIS installer creates start menu links to launch and uninstall my application.

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

+4
source share
1 answer

like any other shortcut

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

this is a conductor in 99% of cases 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 this shortcut will have the wrong icon, etc.

+7
source

All Articles