| Red Wine |
9th February 2007 10:02 |
You might want to read the windows help about :
"Provides a space for you to type a keyboard shortcut that you press to start or switch to a program. Shortcut keys automatically include CTRL+ALT. Press the key you want to add to this combination. For example, to define the shortcut key combination CTRL+ALT+H, press H. You cannot use ESC, ENTER, TAB, the SPACEBAR, PRINT SCREEN, DELETE, or BACKSPACE.
No other program can use this key combination. If the shortcut key conflicts with an access key in a Windows-based program, the access key does not work. An access key is a letter or number that, when used in combination with the ALT key, carries out the same command as clicking the command with the mouse."
Following example works perfect for me:
code: OutFile 'test.exe'
Section
ReadRegStr $0 HKLM "Software\NSIS" ""
CreateDirectory "$SMPROGRAMS\My Company"
SetOutPath $0
CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$0\nsis.exe" \
"" "$0\nsis.exe" 0 SW_SHOWNORMAL "ALT|SHIFT|F12" "a description"
SectionEnd
|