Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Wrong Target set in Desktop shortcut

Wrong Target set in Desktop shortcut

Scheduled Pinned Locked Moved C#
sysadmintutorialquestionworkspace
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iamdking
    wrote on last edited by
    #1

    Hi all, I have created setup for my program . This setup creates shortcut icon on my desktop. But this icon have wrong target set. Target shown is 'MyInstaller' ( where 'MyInstaller' is deployment project name ). When I check other shortcuts available on my desktop, I found Target is set to '"C:\Program Files\Beyond Compare 3\BCompare.exe"' (for example). Why all the shortcuts created by me do not have such target? I wanted to use the target to process my documents. Do I miss some settings here? Thanks in advance !!

    Amit

    L 1 Reply Last reply
    0
    • I iamdking

      Hi all, I have created setup for my program . This setup creates shortcut icon on my desktop. But this icon have wrong target set. Target shown is 'MyInstaller' ( where 'MyInstaller' is deployment project name ). When I check other shortcuts available on my desktop, I found Target is set to '"C:\Program Files\Beyond Compare 3\BCompare.exe"' (for example). Why all the shortcuts created by me do not have such target? I wanted to use the target to process my documents. Do I miss some settings here? Thanks in advance !!

      Amit

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Show the code you use to create the shortcut, there is probably something wrong in it.

      Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

      I 1 Reply Last reply
      0
      • L Lost User

        Show the code you use to create the shortcut, there is probably something wrong in it.

        Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

        I Offline
        I Offline
        iamdking
        wrote on last edited by
        #3

        Hi Richard, Thanks for the reply. I haven't write any code for this. I followed below steps 1) add 'Setup Project' to the solution. 2) right click on Project, select 'View' => 'file system' 3) add 'primary output' to the Application Folder 4) create shortcut by right clicking on the primary output file 5) move this shortcut to the 'User's Desktop' folder Any idea how this can be handled?

        Amit

        L 1 Reply Last reply
        0
        • I iamdking

          Hi Richard, Thanks for the reply. I haven't write any code for this. I followed below steps 1) add 'Setup Project' to the solution. 2) right click on Project, select 'View' => 'file system' 3) add 'primary output' to the Application Folder 4) create shortcut by right clicking on the primary output file 5) move this shortcut to the 'User's Desktop' folder Any idea how this can be handled?

          Amit

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Sorry, I have not used this process so cannot offer any suggestions, other than to suggest you check carefully that each step is referring to the correct object.

          Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

          I 1 Reply Last reply
          0
          • L Lost User

            Sorry, I have not used this process so cannot offer any suggestions, other than to suggest you check carefully that each step is referring to the correct object.

            Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

            I Offline
            I Offline
            iamdking
            wrote on last edited by
            #5

            ok...do you have any example of 'using Installer class' for deploying windows projects? or any other way for installation process?

            Amit

            L 1 Reply Last reply
            0
            • I iamdking

              ok...do you have any example of 'using Installer class' for deploying windows projects? or any other way for installation process?

              Amit

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              iamdking wrote:

              do you have any example

              I'm afraid not, that's why I said "cannot offer any suggestions". However, you could try a Google search for 'using Installer class' and see what that comes up with.

              Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

              I 1 Reply Last reply
              0
              • L Lost User

                iamdking wrote:

                do you have any example

                I'm afraid not, that's why I said "cannot offer any suggestions". However, you could try a Google search for 'using Installer class' and see what that comes up with.

                Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

                I Offline
                I Offline
                iamdking
                wrote on last edited by
                #7

                Hi Richard, Thanks for reply. I got help from this url [^]. My app is working now.. :D

                Amit

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups