Old 20th May 2005, 09:30   #1
Srikanth
Junior Member
 
Join Date: May 2005
Posts: 4
problem in creating shortcut

Our project has the following directory structure.

ProjectName
|__ bin
|__ …
|__ …
|__ …

I created a shortcut to uninstall.exe present in ProjectName folder on Desktop. It is working fine. Similarly I tried to create a shortcut to StartServer.bat in bin directory.
It didn’t work.
I manually created a shortcut to StartServer.bat on the Desktop, its working. I found the difference between the shortcut created manually and that created by NSIS script.
If you see the properties of the two shortcuts, in the former case the “start in” field in properties was pointing to “ProjectName/bin” and the latter was pointing to “ProjectName”. I changed the “start in” field in the latter case to ProjectName/bin, it started working fine. Does any one know work around for this problem?

Here is the code I have used to create shortcut.
CreateShortCut "$DESKTOP\StartProject.lnk" "$INSTDIR\bin\StartServer.bat" "" "$INSTDIR\bin\StartServer.bat" 0

I am using NSIS206.
Srikanth is offline   Reply With Quote
Old 20th May 2005, 09:59   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Use SetOutPath "$INSTDIR\bin" first.

-Stu
Afrow UK is offline   Reply With Quote
Old 20th May 2005, 10:36   #3
Srikanth
Junior Member
 
Join Date: May 2005
Posts: 4
Problem in creating shortcut

Thank you...
Its working fine now.
Srikanth is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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