Skip to content
⌘ NSIS Forum Archive

the character / with createshortcut

5 posts

moxo#

the character / with createshortcut

hello
i write this line:
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\myproduct.lnk" '"$PROGRAMFILES\Microsoft shared\access runtime\msaccess.exe" /runtime "$INSTDIR\myproduct.mdb"' "" "" 0
after i launch my install and when i look properties of y shortcut, i have:
"c:\program files\Microsoft shared\acces runtimes\masaccess.exe" \runtime "c:\product\myproduct.mdb".
the installation change the character / before runtime in a \.
why??
thanks to help me, i search in forum and i don't find the good answer.
kichik#
It's not the installer, it's Windows. See the "I am having problems with CreateShortCut" question in the FAQ.
moxo#
with your answer i write this
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\carat.lnk" "$PROGRAMFILES\Microsoft shared\access runtime\msaccess.exe" "/runtime" "$INSTDIR\myproduct.mdb"
it's not good because now i have in the properties of my shorcut:
"C:\Program Files\Microsoft shared\access runtime\msaccess.exe" /runtime
i don't have "c:\product\myproduct.mdb" in final.
thanks you have an idea
Vytautas#
Should not that be
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\carat.lnk" "path\to\msaccess.exe" "/runtime $INSTDIR\myproduct.mdb" 
Vytautas
moxo#
it's good i try and my problem is resolved
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\myproduct.lnk" "$PROGRAMFILES\Microsoft shared\access runtime\msaccess.exe" '/runtime "$INSTDIR\myproduct.mdb"'.
thanks for your help