locked
Adding Desktop Shortcut To Setup Project RRS feed

  • Question

  • Hi everyone....

     

    I have followed the instructions of this article:  http://support.microsoft.com/kb/837220

     

    Now everything works fine, but what it doesn't account for is when the user changes the installation directory.

     

    Does anyone know how to change where the link (LNK file) points to?

     

    Thanks,

     

    Forch

    Friday, October 12, 2007 10:09 PM

Answers

  •  

    Hi Forch,

    To create a shortcut file to a setup project, I prefer the following way.

    1.       In Visual Studio 2005 or in Visual Studio .NET, create a Setup project:

    a.       Click File in menu bar, point to Add, and then click New Project. The Add New Project dialog box appears.

    b.      Under Project Type, click Setup and Deployment Projects.
    Note: In Visual Studio 2005, click Other Project Types, and then click Setup and Deployment.

    c.       Under Templates, click Setup Project.

    d.      In the Name box, type ‘MyWindowsAppInstaller’, and then click OK. The project is added to Solution Explorer, and the File System Editor appears.

    2.       Add the project output of the Windows Application project to the Setup project

    a.       In the File System Editor, click Application Folder.

    b.      On the Action menu, point to Add, and then click Project Output

    c.       In the Add Project Output Group dialog box, click Primary output, and then click OK

    d.      Right-click ‘Primary output from xxx’, Choose create shortcut to ‘Primary output from xxx’, and rename the shortcut.
    Note: ‘xxx’ stands for the name of your application project

    e.      In the File System Editor, click User's Desktop, and cut the shortcut to this folder.

    3.       On the Build menu, click Build ‘MyWindowsAppInstaller’.

    Hope this helps.
    Best regards.
    Rong-Chun Zhang

    Monday, October 15, 2007 10:24 AM