Create a desktop shortcut in a Setup project

G

Guest

I would appreciate assistance learning how to create a Desktop shortcut in my
setup project.

In the left pane of the Setup/File System window I right-clicked User's
Desktop. From the contex menu I clicked Create Shortcut to User's Desktop.
In the right pane of the setup/File System window the object Shortcut to
User's Desktop appeared. When I selected the object and checked it's
properties the Target and WorkingFolder are User's Desktop. When I install
the application the desktop shortcut is a shortcut to the desktop and not to
the application. When I attempt to modify the Tartet and WorkingFolder
properties my only choices are the three folders Application Folder, User's
Desktop and User's Program Menu.

I'm sure that these two properties must point to the application, but how is
this done?

Thanks
 
C

Cor Ligthert [MVP]

Grandpa,

I am always fighting with it to. However, I first to create two shortcuts
using the rightclick on the application and than in those set the properties
of those and than drag it to the ones where they should be on the left.

That is the way I do it, obviously there will be more.

Cor
 
M

m.posseth

create the shortcut ( right click on the executable ) and then drag this to
the required place


hth

Michel
 
G

Guest

Cor,

Thanks for your reply. I'm sorry to be so dense, but I do not understand
you reply. I created a shortcut in the Art Project by right-clicking on the
executable Art.exe in in the bin folder. The properties of the shortcut
appeared to be correct for running the application on my system. I made
several attempts to add this shortcut to my ArtSetup project but they were
all unsuccessful.

1.) I could not drag the shortcut from the bin folder of the Art Project to
the File System window of the ArtSetup Project.

2.) I created the shortcut in the ArtSetup Project as I had in the past, but
I could not copy the properties of the shortcut in the Art Project bin folder
to the shortcut in the ArtSetup Project File System window.

3.) Instead of creating a shortcut in the ArtSetup Project, I added the
shortcut file from the Art Project bin folder to the User's Desktop folder in
the File System Window of the ArtSetup Project. This put Art.exe, an
Assembly, in the User's Desktop folder, not a shortcut.

I would appreciate some clarification on how include the shortcut in my
ArtSetup Project and how to set the properties of the shortcut.

Thanks
 
G

Guest

Michel,

Thanks for your reply. I'm sorry to be so dense, but I do not understand
you reply. I created a shortcut in the Art Project by right-clicking on the
executable Art.exe in in the bin folder. The properties of the shortcut
appeared to be correct for running the application on my system. I made
several attempts to add this shortcut to my ArtSetup project but they were
all unsuccessful.

1.) I could not drag the shortcut from the bin folder of the Art Project to
the File System window of the ArtSetup Project.

2.) I created the shortcut in the ArtSetup Project as I had in the past, but
I could not copy the properties of the shortcut in the Art Project bin folder
to the shortcut in the ArtSetup Project File System window.

3.) Instead of creating a shortcut in the ArtSetup Project, I added the
shortcut file from the Art Project bin folder to the User's Desktop folder in
the File System Window of the ArtSetup Project. This put Art.exe, an
Assembly, in the User's Desktop folder, not a shortcut.

I would appreciate some clarification on how include the shortcut in my
ArtSetup Project and how to set the properties of the shortcut.

Thanks
 
C

Cor Ligthert [MVP]

Granpa,

Assuming that you have added an setup project to your application. (That you
have done Action Add Project output),

Than in the left frame the *application folder* is the selected one and in
that folder is the "Primary Output", (Don't ask me why here is chosen
"Primary Output", I absolutely don't understand that).

Than you right click on the created "primary output" in the pane and tell to
create a shortcut
From that you change the name to your program name, you set the
properties and drag that one to the window that normally is by default open
File Stystem on the left "User Desktop". (In advance you can set an icon and
set other properties of that shortcut).
You do this again however than drag it to the folder User's Program menu
in the left.

Don't forget without selecting anything to open the properties (if you
select something you get the wrong properties)

More confusing are some other properties select the setup project (header)
in the solution explorer *do not right click*, choose the properties
windows. Than you find one of the best hidden properties of VS2002/2003

I hope this helps,

Cor
 
C

Cor Ligthert [MVP]

Assuming that you have added an setup project to your application. (That
you have done Action Add Project output),
And after that than you have done...........................

Cor
 
G

Guest

Cor,

Thanks, that did it! I am glad to learn that someone besides me was
confused by this. Your help has been greatly appreciated!

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top