- NSIS Discussion
- Advanced Short cut stuff
Archive: Advanced Short cut stuff
ZmAn3
17th August 2008 07:29 UTC
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 :)
Anders
17th August 2008 08:09 UTC
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?
ZmAn3
17th August 2008 08:14 UTC
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
demiller9
17th August 2008 14:53 UTC
Did you miss the single quotes around the '/crap' parameters in the crappy sample Anders showed you?
ZmAn3
17th August 2008 16:32 UTC
that does not work either still cuts off everything after /crap :(
Anders
17th August 2008 17:52 UTC
createshortcut
"$temp\test.lnk""$sysdir\targer.exe"'/foo"c:\bar"'
ZmAn3
18th August 2008 00:50 UTC
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
Anders
18th August 2008 07:57 UTC
I don't see why two of them should be a problem. SetOutPath controls the start in folder, clearly documented in the helpfile...
ZmAn3
19th August 2008 04:25 UTC
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
kichik
19th August 2008 06:19 UTC
CreateShortcut "$SMPROGRAMS\ShortCutFreaknTest\MyProgram.lnk" "$COMMONFILES\Microsoft Shared\Access Runtime\Office10\MSACCESS.EXE" '/Runtime "$PROGRAMFILES\MyProgram\next generation.mde" /WrkGrp "$PROGRAMFILES\MyProgram\oldone.mdw"'
ZmAn3
19th August 2008 09:20 UTC
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
Anders
19th August 2008 09:35 UTC
no, you can't use nsDialogs on the instfiles page