Archive: Make Shortcut makes keyborad not work?


Make Shortcut makes keyborad not work?
OK useing the

CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$INSTDIR\My Program.exe" \
"some command line parameters" "$INSTDIR\My Program.exe" 2 SW_SHOWNORMAL \
ALT|CTRL|SHIFT|F5 "a description"

is seems to omit the Start In information on the created shortcut every time this incomkplete shortcut turns into a malicious file and casues the spacebar to stop functioning. I'm just curisous if this is happnd to anyone else or if this is just me being a noob at this.

A quick forum search returned a related thread that you might want to check,

http://forums.winamp.com/showthread....hreadid=198223


Umm no i mean it makes the spacebar stop working system wide


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:

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

well can i ask then what i should so do if i dont want to include a shourtcut key for the shourtcut? i just want it to point to the specified file would simply "" work? (still a noob as this >_< )


Originally posted by Sara Greorov
well can i ask then what i should so do if i dont want to include a shourtcut key for the shourtcut? i just want it to point to the specified file would simply "" work? (still a noob as this >_< )
You may skip one or more parameters simply by adding "" for every parameter that you wish to skip :)