Odd shortcut problem with my app using a VS2005 deployment project

G

Guest

I have my deployment project in VS2005 for my executable I'm making an
install for.
The install seems to build fine and installs without a problem.

The odd problem is that the shortcuts created for the exe work fine the
first time, but then the second time I try it - it pops up a dialog box for a
number of seconds (similar to if it was installing something).

So I thought perhaps it was ExeShield or something wrong with the executable
- but if I create a shortcut to my foo.exe it starts up fine each and every
time I run it. But no matter how many times I try to VS created shortcuts it
always has a delay with this pop-up look akin to an install window.

1. I created a fold underneath the Program Files folder named "foo" (so I am
not using the Application Folder)
2. I create a Foo folder under the User's Programs Menu
3. I put my files into the foo folder
4. I create shortcuts to foo.exe, drag them to the User Desktop & my Foo
folder under the User's Program Menu
5. The only thing I change for the shortcuts are blank (so the arguments and
the description is blank). The Target and WorkingFolder seem fine.
6. I did mark folders as AlwaysCreate since I read somewhere I need to do
that if making a shortcut (so I marked: Program Files Folder and my Foo
folder under that, the User's Desktop, the User's Programs Menu and my Foo
folder under that).

So if I look at the shortcut it creates:
the Target type is Application,
the Target location is blank,
the Target just says Foo,
the Start In is the correct C:\program files\foo

So I don't understand the shortcut why I cannot change the target or target
location, but it seems to work fine the first time.
It also works all subsequent times, it just pops up that slow & annoying
window for several seconds.
Also if I manually make a shortcut to foo.exe it works fine every time, it
is just these shortcuts made by the deployment project that seem to give me a
problem.

Has anybody heard of this?


All I am doing is in my deployment project right click on the
 
G

Guest

Mission abort - mission abort!

Sorry - it turns out that I had a temporary file in the directory that
caused the issue depending on the shortcut.
I don't fully understand what the problem was - but getting rid of the temp
file resolved the problem.
 
G

Guest

Hello Wayne,

I am facing same problem here. Can you please guide how you managed to
resolve it? It is really annoying.

Thanks in advance

Amritpal
 
G

Guest

Hello Amrit,
Sorry for the delay - I was on vacation.

If I recall I'm not sure why I had the problem in the first place.
Originally I had created a folder under "Program Files Folder" for my
application but when I moved everything in the setup project to be under the
"Application Folder" the problem went away.
 

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