Results 1 to 6 of 6

Thread: Shortcut icon of Exe on Desktop.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2008
    Posts
    204

    Shortcut icon of Exe on Desktop.

    Hi friends,
    For my application software, I created an install package using Package and Deployment wizard. Now my question is how to make a shortcut icon of application appear automatically on desktop when this package is installed?
    Thanks in advance.
    Regards,
    Susheelss.

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Shortcut icon of Exe on Desktop.

    You could create vbs file (A notepad file but instead of .txt it is .vbs) and then run it on installation.

    The text file will have the following...


    Note:
    Change the text in red to appropriate text...

    MyFile ~~> whatever you want the shortcut to be called
    Brief Description ~~> What ever brief description you want to put
    Assign A Hotkey here ~~> Replace it with a hotkey
    Myfile.Exe~~> Replace it with your filename
    c:\MyFile.exe ~~> Target Path + Target Exe
    c:\WorkingDirectory~~> directory that the files are located in
    The text that goes in the vbs file.

    Set Shell = CreateObject("WScript.Shell")
    DesktopPath = Shell.SpecialFolders("Desktop")
    Set link = Shell.CreateShortcut(DesktopPath & "\MyFile.lnk")
    link.Arguments = "1 2 3"
    link.Description = "(Brief Description)"
    link.HotKey = "Assign A Hotkey here"
    link.IconLocation = "(Myfile.Exe) ,1"
    link.TargetPath = "c:\MyFile.exe"
    link.WindowStyle = 3
    link.WorkingDirectory = "c:\WorkingDirectory"
    link.Save



    Edit

    Here is something else which you can have a look at...

    http://www.vbforums.com/showthread.php?t=234891
    Last edited by Siddharth Rout; Apr 29th, 2010 at 11:00 AM.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

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

    Re: Shortcut icon of Exe on Desktop.

    Moved To Application Deployment

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2008
    Posts
    204

    Re: Shortcut icon of Exe on Desktop.

    Thanks Mr SID for ur reply. But sir I wanted my application software shortcut icon to be placed on the desktop automatically while installing the package of the application software created using package and deployment wizard in vb6.

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Shortcut icon of Exe on Desktop.

    Then you need to look at the options of what ever you are using to make your install... generally speaking, they all do that... you just have to tell it.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Shortcut icon of Exe on Desktop.

    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

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