|
-
Apr 29th, 2010, 10:33 AM
#1
Thread Starter
Addicted Member
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.
-
Apr 29th, 2010, 10:56 AM
#2
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
-
Apr 29th, 2010, 11:08 AM
#3
Re: Shortcut icon of Exe on Desktop.
Moved To Application Deployment
-
Apr 29th, 2010, 12:04 PM
#4
Thread Starter
Addicted Member
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.
-
Apr 29th, 2010, 12:21 PM
#5
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
-
Apr 29th, 2010, 12:25 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|