Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 14th November 2012, 14:26   #1
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
Run an application using short cut folder in StartMenu in nsis?

How to start the my application using short cut in Start menu? I have tried following but could not started the application?


CreateShortcut "$STARTMENU\Programs\my application\my app.lnk" "$INSTDIR\setup.exe" "" "" 0

In my script i did not included setup.exe? After compiling only setup.exe file created.Is there need to copy this file? I dont know how to solve this?

Can anyone help me?
ilaiyaraja is offline   Reply With Quote
Old 14th November 2012, 14:43   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
I'm not sure if I understand your question correctly, but if you want to create a shortcut to your installed application, the code should look something like this:
CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$INSTDIR\My Program.exe" "" "$INSTDIR\My Program.exe"

If you want to create a shortcut to the installer (why??), you could try:
CreateShortCut "$SMPROGRAMS\My Company\My Program Setup.lnk" "$EXEPATH" "" "$EXEPATH"
(Of course this assumes that the installer isn't renamed, deleted or moved after installation.)
MSG is offline   Reply With Quote
Old 15th November 2012, 03:26   #3
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
CreateShortCut "$SMPROGRAMS\My Company\My Program Setup.lnk" "$EXEPATH" "" "$EXEPATH"

If i give it'll open the output directory.I need to run my application through this short cut menu?
ilaiyaraja is offline   Reply With Quote
Old 15th November 2012, 04:41   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
You're still not clearly saying what you want to run: Your installer, or your application?
MSG is offline   Reply With Quote
Old 15th November 2012, 04:52   #5
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
Thanks MSG.

I need to run my application through this shortcut option.No need to run the installer.
ilaiyaraja is offline   Reply With Quote
Old 15th November 2012, 05:12   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Then you shouldn't be bothering with $EXEPATH. Like I said, that's if you wanted to run the installer itself.
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
java, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump