Results 1 to 6 of 6

Thread: Creating ShortCuts On Desktop?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2008
    Posts
    75

    Creating ShortCuts On Desktop?

    Does anyone know how id go about doing this? Ive searched but didnt find anything. thx in advance

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Creating ShortCuts On Desktop?

    What installer are you using?

    Most have that feature built into them.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2008
    Posts
    75

    Re: Creating ShortCuts On Desktop?

    Its a portable app so id like to do it on form load or in some settiings...
    o and vb2008

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Creating ShortCuts On Desktop?

    "Portable" usually means the application travels via removable media. Thus a desktop shortcut is pointless.

    There are many "portable app environment toolkits" though that offer a launcher applet, often taking the form of a mini-Start menu that can be popped up from a notification area (tray) icon. U3 is one example. These are generally set up to autorun on media insertion where possible.

    If you just want to go ahead and make a desktop shortcut there isn't much to it. In VB6 I suppose I might use the Shell Automation Objects or even the Script Host Object Model to do this. There is probably some .Net BCL wrapper for shell32.dll that does the same thing.

    But just as with a floppy disk the user might insert the disk into A: sometimes and B: other times, USB drives offer no guarantee regarding the "drive letter" assignment either from insertion to insertion. Windows will try to reassign the same letter to a given device on subsequent insertions... which is even a problem when Windows gave the device G: the first time, but later you have another G: (mapped share, etc.) when you plug that USB device in a second time.

    Portable app toolkits tend to have addressed most of these issues for you.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2008
    Posts
    75

    Re: Creating ShortCuts On Desktop?

    i meant portable as in no install needed. And I wanted to open the settigns dialog on load and let the users pick where to put shortcuts. thank you for your suggestions ill be google'n 4 the next few hrs

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Creating ShortCuts On Desktop?

    Quote Originally Posted by ahostbr
    i meant portable as in no install needed.
    In that case VB isn't a great idea (especially VB2008), as some things need to be installed in order for your program to run - in this case whichever .Net framework you developed against.

    In some cases users will have it already (from another program, or via an optional Windows Update, etc), but in many cases they wont.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width