Archive: Advanced Short cut stuff


Advanced Short cut stuff
Looking for some help with createshortcut

I need to make a short cut on the start menu with the following --taken from the orginal short cut rightclick\properties

TARGET
"C:\Program Files\Common Files\Microsoft Shared\Access Runtime\Office10\MSACCESS.EXE" /Runtime "C:\Program Files\myprogram\somedbfile.mde" /WrkGrp "C:\Program Files\myprogram\oldone.mdw"

the problem ive been having is with the /'s in like /runtime
they get striped out or stop the line or some crap

then also in the start in crap I need
"C:\Program Files\Common Files\Microsoft Shared\Access Runtime\Office10"

thanks :)


its like createshortcut can't tell that you really mean it as one string and not several params or some crap like that, maybe if you try '"c:\some\path\crap.exe" /param "c:\more\crap"' maybe the crappy thing will accept your crappy string?


lol glad you understand the crappy crap
anyways no it gives me the /runtime but cuts off everything after it
"C:\Program Files\Common Files\Microsoft Shared\Access Runtime\Office10\MSACCESS.EXE" /Runtime


Did you miss the single quotes around the '/crap' parameters in the crappy sample Anders showed you?


that does not work either still cuts off everything after /crap :(


createshortcut"$temp\test.lnk""$sysdir\targer.exe"'/foo"c:\bar"'


thank you so much that seems to be working great any idea on the start in folder part of the shortcuts properties?

thanks again

EDIT
also if you read my first post i have 2 of the / things
/runtime and later /WrkGrp cant seem to get them both to work
get compile error


I don't see why two of them should be a problem. SetOutPath controls the start in folder, clearly documented in the helpfile...


Hey thanks for the start in info

as for the actual path to the program im still having problems
based on what you gave me before i tried

CreateShortcut "$SMPROGRAMS\ShortCutFreaknTest\MyProgram.lnk" "$COMMONFILES\Microsoft Shared\Access Runtime\Office10\MSACCESS.EXE" '/Runtime "$PROGRAMFILES\MyProgram\next generation.mde"' '/WrkGrp "$PROGRAMFILES\MyProgram\oldone.mdw"'

which gives me a shortcut with the properties of

"C:\Program Files\Common Files\Microsoft Shared\Access Runtime\Office10\MSACCESS.EXE" /Runtime "C:\Program Files\MyProgram\next generation.mde"

so its stripping off crap ive also tried a few variations on the ' and " and i start getting compile errors about it not finding the shortcuts icon file so it thinks ive moved on to the icon and icon index part --which i do need to do later

thanks again oh and '"'"''""''''''"""''''\"""'''|''.COM


CreateShortcut "$SMPROGRAMS\ShortCutFreaknTest\MyProgram.lnk" "$COMMONFILES\Microsoft Shared\Access Runtime\Office10\MSACCESS.EXE" '/Runtime "$PROGRAMFILES\MyProgram\next generation.mde" /WrkGrp "$PROGRAMFILES\MyProgram\oldone.mdw"'


Sweeeeeeeeeeeeet thanks guys :)
kichik since your here can i use your nsdialogs on the instfiles page ?? to set a background if so how do i get that pages hwnd or whatever

thanks again


no, you can't use nsDialogs on the instfiles page