Python Forum
how to create desktop shortcut
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to create desktop shortcut
#1
I am writing python script that install program under program files
and would like to create shortcut using same script to desktop.
how to make that?

Thanks,
Reply
#2
I used winshell in the past to create special shortcut in SendTo folder. very handy. Both my script and the shortcut creation tool were converted to exe. Then I used inno setup to create installation manager. The shortcut creation tool was run during the installation process.
why not use Inno Stup or similar (e.g. InstallCreator) for the installation process? I.e. you can create desktop icon with it. I know it can create shortcut also in my case, but I needed to get more information from the user and that is why I used custom script to create the sendto link (didn't find how to do it with inno).
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
I am not looking for shortcut to python program.
just create desktop shortcut for any executable program.
Thanks,
Reply
#4
yes, you can create shortcut to any program. Of course you need to know the path to the program.
I just explained how I used it.
Also, my advice to use install manager still apply.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Get Current Directory From ShortCut. Oshadha 1 1,072 Jul-30-2022, 04:41 PM
Last Post: snippsat
  Windows install does not create .exe, shortcut,etc to open hammer 4 2,154 May-05-2022, 12:33 PM
Last Post: hammer
  How to read python shortcut target profile directory of Chrome Ink file sunny9495 1 1,794 Apr-12-2022, 06:12 PM
Last Post: sunny9495
  How to run atom python script on idle press on keyboard shortcut. sonjoypall 2 5,264 Feb-07-2018, 07:51 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020