Archive: Shortcuts don't work fine


Shortcuts don't work fine
I wondered about missing chars in the target of a Shortcut I created...

I wondered more after seeing that NSIS shows it correct


StrCpy $TRISTART "$ACCESS\MSACCESS.EXE $INSTDIR\Trisys.mde /runtime"

CreateShortCut "$DESKTOP\TRISYS.lnk" "$TRISTART"


$ACCESS includes the path of the access version the user has on his PC. I need this, because the user has to start the MDE with Access.

My problem is that the shortcut should look like this:
"C:\Programme\Microsoft Office\ART\Office\MSACCESS.EXE" C:\Programme\TRISYS\Trisys.mde /runtime


But it looks like this:
"C:\Programme\Microsoft Office\ART\Office\MSACCESS.EXE C\Programme\UniSoft\TRISYS\Trisys.mde runtime"


the most interesting things are the missing ':' and the '/' - I know NSIS is based on C and I know too that C needs a double backslash to display a single backslash... but a normal slash?

I've searched the forums but I didn't found any really helping post

http://nsis.sourceforge.net/support...tx_faq_faq=11
didn't help too


hope anyone knows what to do

Ok, I got the installer writing:

"C:\Programme\Microsoft Office\ART\Office\MSACCESS.EXE" C:\Programme\TRISYS\Trisys.mde

hmm only the /runtime parameter is still missing


Hi Davion :)

I've searched the forums but I didn't found any really helping post

http://nsis.sourceforge.net/support/...&tx_faq_faq=11
didn't help too
You should read more carefully the FAQ item pointed by the link you have posted:
Make sure you have separated the parameters from the target file.
It's exactly the problem in your CreateShortCut instruction. In your case the target file is "$ACCESS\MSACCESS.EXE" and the parameters are "$INSTDIR\Trisys.mde /runtime".

Therefore, to create your shortcut you should use:

CreateShortCut "$DESKTOP\TRISYS.lnk" "$ACCESS\MSACCESS.EXE" '"$INSTDIR\Trisys.mde" /runtime'


The single quotes for the shortcut's parameter allows you to have double-quotes inside the string, in order to properly get the $INSTDIR if ot contains spaces.

evilO/Olive

in the meantime I found this out myself CreateShortCut "$SMPROGRAMS\TRISYS\TRISYS start.lnk" "$ACCESS\MSACCESS.EXE" "$INSTDIR\Trisys.mde /runtime"
Works fine for me - nevertheless thanx

Wer reden kann ist klar im Vorteil // Those who can read are clear in the advantage << German Proverb, I hope I translated it right


OT

Wer reden kann ist klar im Vorteil // Those who can read are clear in the advantage << German Proverb, I hope I translated it right
Those who can read got the advantage ;)

Wer lesen kann ist klar im Vorteil ^^

Nette Google Übersetzung bei dir ^^
Kannst es ja mal vorwärts/rückwärts übersetzen lassen