Results 1 to 4 of 4

Thread: Application Shortcuts

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    79

    Application Shortcuts

    At last I have a BETA version of my first .net application. I am encountering a problem with application shortcuts. I created a setup project and installation works fine except that the shortcuts created will try to install the program everytime I double click on them. Creating a shortcut manually will solve the problem.

    What I am doing is

    1. Build a release version into the bin folder.
    2. Run dotfuscator and save the applic.exe to a folder c:\ToRelease containing all my files that will go into the setup.

    3. Create a setup project
    4. Define a folder to be c:\program files\my app
    5. add all files in the ToRelease folder to folder defined in 4
    6. Create shortcuts for applic.exe with the properties as

    folder: User Desktop
    Target: applic (From select item in project)
    Working Folder: my app (From select folder)

    I repeat the same as 5 for the User's program menu

    The shortcuts will be created fine on installation but before running the application they seem to run install again, altough no prompts appear. If I rename the Release folder where the setup is saved the shortcuts will fail with an error. It seems that the shortcut will point to the setup program instead.

    I am testing this on Win2000

    Any help is appreciated.

  2. #2
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    If you check the target path of your shortcut (from your install) it won't give you the exact path to the exe as it would if you created the shortcut manually. I came across this same problem recently.

    My Solution: Orca

    http://www.dotnetforums.net/t76225.html

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    79
    Many thanks to you VBCrazyCoder

    I will give it a try

  4. #4
    Addicted Member Sheppe's Avatar
    Join Date
    Sep 2002
    Location
    Kelowna, BC
    Posts
    245
    Use a better install system like Inno Setup.
    [vbcode]
    On Error Goto Hell
    [/vbcode]
    Sheppe Pharis, MCSD
    Check out http://www.vb-faq.com
    Click here for access to the free Code-Express source code and component sharing network for VB6
    Want a better way to skin your .NET applications? Click here!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width