0

As in the question I want to let user decide if he/she wants desktop shortcut of my application or not using NSIS. I was trying to do it using custom pages, but no luck.

Maybe someone did it before and will be willing to share the script?

Thanks in advance :)

kyrisu
  • 4,541
  • 10
  • 43
  • 66
  • This has been answered (with a better answer) in http://stackoverflow.com/questions/1517471/how-to-add-a-desktop-shortcut-option-on-finish-page-in-nsis-installer. – J. Stoever Mar 06 '11 at 16:37

1 Answers1

0

The easy way is to just use a section and the component page takes care of it

If you go for the custom page option (overkill IMHO), you could store the result in a global variable or just toggle the (hidden) section directly with the helper macros in section.nsh

Note: I'm pretty sure the MS guidelines tells you not to create a desktop shortcut

Anders
  • 97,548
  • 12
  • 110
  • 164
  • You are right.. after reading a little more I got it using sections ;) But I just started using NSIS today so I hope I'm excused :) – kyrisu May 20 '09 at 18:39