How to make my Installer create a desktop shortcut

I want my Installer to havea create desktop shortcut but cant figure i

Page 1 of 1

3 Replies - 4654 Views - Last Post: 01 October 2009 - 08:42 PM Rate Topic: -----

#1 painkiller102  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 16
  • View blog
  • Posts: 281
  • Joined: 27-February 08

How to make my Installer create a desktop shortcut

Post icon  Posted 01 October 2009 - 09:19 AM

I have made my own installer and it will install the program to: C:/test app/test.exe
At the end of the setup i want an option for the user to create a desktop shortcut of test.exe, but i cant seem to find code or help online to help me achieve this. Any help is greatly appreciated and thanks in advanced!
Is This A Good Question/Topic? 0
  • +

Replies To: How to make my Installer create a desktop shortcut

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8346
  • View blog
  • Posts: 31,908
  • Joined: 06-March 08

Re: How to make my Installer create a desktop shortcut

Posted 01 October 2009 - 06:36 PM

What is the relation with the Java programming language for which we answer question in this forum

Is your installer written in Java ?
Was This Post Helpful? 0
  • +
  • -

#3 painkiller102  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 16
  • View blog
  • Posts: 281
  • Joined: 27-February 08

Re: How to make my Installer create a desktop shortcut

Posted 01 October 2009 - 07:02 PM

View Postpbl, on 1 Oct, 2009 - 05:36 PM, said:

What is the relation with the Java programming language for which we answer question in this forum

Is your installer written in Java ?


HAHAHA yea, sorry if i wasn't clear. I have made a custom installer all in java. It basically copy's all of the subfolders the script is in and then moves them to the desired locations and what not, but i cant figure out how to make java create a shortcut, all i can seem to do is physically make a copy! I was wondering if there was a way for java to make a shortcut of my .exe (which is also java -converted from jar to exe). If you want code, all i really have is the copy script, which i know you've seen a lot around here (mainly because i learned it from here almost a year ago when i was in java class)! If there is a way to make a shortcut, that would be perfect. but if i have to make two copies of the exe (one in the folder and one on the desktop) I'm sure i wouldn't be too bothered by it, but i would like to know the proper way of making a shortcut (if possible of course)
Was This Post Helpful? 0
  • +
  • -

#4 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8346
  • View blog
  • Posts: 31,908
  • Joined: 06-March 08

Re: How to make my Installer create a desktop shortcut

Posted 01 October 2009 - 08:42 PM

We are in a Java forum
you sure you are not talking about Java Script ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1