-
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.
-
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
-
Many thanks to you VBCrazyCoder
I will give it a try
-
Use a better install system like Inno Setup.