Announcement

Collapse
No announcement yet.

Advanced Short cut stuff

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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?
    IntOp $PostCount $PostCount + 1

    Comment


    • #3
      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

      Comment


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

        Comment


        • #5
          that does not work either still cuts off everything after /crap

          Comment


          • #6
            PHP Code:
            createshortcut "$temp\test.lnk" "$sysdir\targer.exe" '/foo "c:\bar"' 
            IntOp $PostCount $PostCount + 1

            Comment


            • #7
              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
              Last edited by ZmAn3; 18 August 2008, 00:13.

              Comment


              • #8
                I don't see why two of them should be a problem. SetOutPath controls the start in folder, clearly documented in the helpfile...
                IntOp $PostCount $PostCount + 1

                Comment


                • #9
                  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

                  Comment


                  • #10
                    CreateShortcut "$SMPROGRAMS\ShortCutFreaknTest\MyProgram.lnk" "$COMMONFILES\Microsoft Shared\Access Runtime\Office10\MSACCESS.EXE" '/Runtime "$PROGRAMFILES\MyProgram\next generation.mde" /WrkGrp "$PROGRAMFILES\MyProgram\oldone.mdw"'
                    NSIS FAQ | NSIS Home Page | Donate $
                    "I hear and I forget. I see and I remember. I do and I understand." -- Confucius

                    Comment


                    • #11
                      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

                      Comment


                      • #12
                        no, you can't use nsDialogs on the instfiles page
                        IntOp $PostCount $PostCount + 1

                        Comment

                        Working...
                        X
                        😀
                        🥰
                        🤢
                        😎
                        😡
                        👍
                        👎