Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.


Go Back   Vista Forums > Misc Newsgroups > .NET General

RB

Vista - VS 2008 Setup Project, shortcut problem

Reply
 
04-17-2009   #1
Ty


 
 

VS 2008 Setup Project, shortcut problem

Hi all

for our application we have a standard Visual Studio 2008 Setup
Project. We noticed an annoyance:

Administrator copies setup-files to his desktop and then installs the
application for all users. the setup creates a icon on the desktop.
now if the "normal" user clicks the icon the first time on his
desktop, for some reason it seems to start setup.msi to check some
things. and since the msi is still residing on the administrators
desktop, of course the the normal user cannot start it, resulting in a
error.

workarround is to create the icon by hand or the admin installs from
another folder then his own.

i've unchecked "check for prerequisites" in the setup, doesn't help.
any shortcut created in
the setup project seems to launch the msi the first time it's clicked.

any idea how to avoid this launch of the msi?

is there a more appropriate newsgroup to ask this? (i didn't get an
answer when i asked it last time)

thank you!

My System SpecsSystem Spec
04-17-2009   #2
Cor Ligthert[MVP]


 
 

Re: VS 2008 Setup Project, shortcut problem

Ty,

Can you explain a little bit how you did it.

Normally you simple use the Setup Wizard, takes the resulted shortcut to the
screen and add in that the icon.

Cor

"Ty" <tylershome@xxxxxx> wrote in message
news:daa5f74c-f902-4f62-a696-c8427b3a4396@xxxxxx
Quote:

> Hi all
>
> for our application we have a standard Visual Studio 2008 Setup
> Project. We noticed an annoyance:
>
> Administrator copies setup-files to his desktop and then installs the
> application for all users. the setup creates a icon on the desktop.
> now if the "normal" user clicks the icon the first time on his
> desktop, for some reason it seems to start setup.msi to check some
> things. and since the msi is still residing on the administrators
> desktop, of course the the normal user cannot start it, resulting in a
> error.
>
> workarround is to create the icon by hand or the admin installs from
> another folder then his own.
>
> i've unchecked "check for prerequisites" in the setup, doesn't help.
> any shortcut created in
> the setup project seems to launch the msi the first time it's clicked.
>
> any idea how to avoid this launch of the msi?
>
> is there a more appropriate newsgroup to ask this? (i didn't get an
> answer when i asked it last time)
>
> thank you!
My System SpecsSystem Spec
04-17-2009   #3
Family Tree Mike


 
 

Re: VS 2008 Setup Project, shortcut problem

"Ty" <tylershome@xxxxxx> wrote in message
news:daa5f74c-f902-4f62-a696-c8427b3a4396@xxxxxx
Quote:

> Hi all
>
> for our application we have a standard Visual Studio 2008 Setup
> Project. We noticed an annoyance:
>
> Administrator copies setup-files to his desktop and then installs the
> application for all users. the setup creates a icon on the desktop.
> now if the "normal" user clicks the icon the first time on his
> desktop, for some reason it seems to start setup.msi to check some
> things. and since the msi is still residing on the administrators
> desktop, of course the the normal user cannot start it, resulting in a
> error.
>
> workarround is to create the icon by hand or the admin installs from
> another folder then his own.
>
> i've unchecked "check for prerequisites" in the setup, doesn't help.
> any shortcut created in
> the setup project seems to launch the msi the first time it's clicked.
>
> any idea how to avoid this launch of the msi?
>
> is there a more appropriate newsgroup to ask this? (i didn't get an
> answer when i asked it last time)
>
> thank you!

Well, you previously posted this same text. You should have added that you
then added the following:
Quote:

> Have you looked at the differences between the shortcut created manually
> (after the install), versus what the installer creates? I believe you are
> saying the manually created shortcut launches without issue.
>
> Probably a better group to ask this is "microsoft.public.dotnet.general",
> but many posts there seem to be from users who have general hardware
> questions...

yes i checked that. there's a difference:

Link created from setup: "Target" contains name of application, all
greyed out.
Link created manually: "Target" contains the actual path to the exe.
not greyed out.

no matter what file i link in the setup, the target contains only the
application name. but it starts the correct file. so there's something
going on behind the scene...



So, I think the way you create the shortcut in your setup is not correct.
Can you explain what you did in the setup project to create the shortcut?
It sounds like you are not following the recommended procedure.

--
Mike

My System SpecsSystem Spec
04-17-2009   #4
Ty


 
 

Re: VS 2008 Setup Project, shortcut problem

Quote:
Quote:

> > Have you looked at the differences between the shortcut created manually
> > (after the install), versus what the installer creates? I believe you are
> > saying the manually created shortcut launches without issue.
>
Quote:

> > Probably a better group to ask this is "microsoft.public.dotnet.general",
> > but many posts there seem to be from users who have general hardware
> > questions...
>
> yes i checked that. there's a difference:
>
> Link created from setup: "Target" contains name of application, all
> greyed out.
> Link created manually: "Target" contains the actual path to the exe.
> not greyed out.
>
> *no matter what file i link in the setup, the target contains only the
> application name. but it starts the correct file. so there's something
> going on behind the scene...
>
> So, I think the way you create the shortcut in your setup is not correct.
> Can you explain what you did in the setup project to create the shortcut?
> It sounds like you are not following the recommended procedure.
>
> --
> Mike
Hi Mike

sorry about the missing info.

In the setup i go to the FileSystem, choose "Primary output from...",
then RightClick and then "Create Shortcut to Primary Output...". then
i place the created shortcut in "User's Desktop" and "User's Programs
Menu".

that's about it...

Thank you!
My System SpecsSystem Spec
04-17-2009   #5
Family Tree Mike


 
 

Re: VS 2008 Setup Project, shortcut problem

"Ty" <tylershome@xxxxxx> wrote in message
news:1fd1a532-763e-447c-b5ef-660330d2eaac@xxxxxx
Quote:

> Hi Mike
>
> sorry about the missing info.
>
> In the setup i go to the FileSystem, choose "Primary output from...",
> then RightClick and then "Create Shortcut to Primary Output...". then
> i place the created shortcut in "User's Desktop" and "User's Programs
> Menu".
>
> that's about it...
>
> Thank you!
The only thing that pops into my mind, as I only have express where I am
now, is this. I recall once "copying" the created icon to the desktop in
the file system and seeing what you are observing. Look at the example link
here. The steps are slightly different.

http://www.codeproject.com/KB/dotnet...p_Project.aspx

--
Mike

My System SpecsSystem Spec
04-21-2009   #6
Ty


 
 

Re: VS 2008 Setup Project, shortcut problem

On 17 Apr., 21:53, "Family Tree Mike"
<FamilyTreeM...@xxxxxx> wrote:
Quote:

> "Ty" <tylersh...@xxxxxx> wrote in message
>
> news:1fd1a532-763e-447c-b5ef-660330d2eaac@xxxxxx
>
Quote:

> > Hi Mike
>
Quote:

> > sorry about the missing info.
>
Quote:

> > In the setup i go to the FileSystem, choose "Primary output from...",
> > then RightClick and then "Create Shortcut to Primary Output...". then
> > i place the created shortcut in "User's Desktop" and "User's Programs
> > Menu".
>
Quote:

> > that's about it...
>
Quote:

> > Thank you!
>
> The only thing that pops into my mind, as I only have express where I am
> now, is this. *I recall once "copying" the created icon to the desktop in
> the file system and seeing what you are observing. *Look at the examplelink
> here. *The steps are slightly different.
>
> http://www.codeproject.com/KB/dotnet...p_Project.aspx
>
> --
> Mike
Hi Mike

This looks like VS2005. in 2008 there's no "Create New Shortcut".

i'll have to investigate further. it's really strange that the
"Target" is greyed out in these setup-created shortcuts.
My System SpecsSystem Spec
04-21-2009   #7
Ty


 
 

Re: VS 2008 Setup Project, shortcut problem

On 21 Apr., 09:43, Ty <tylersh...@xxxxxx> wrote:
Quote:

> On 17 Apr., 21:53, "Family Tree Mike"
>
>
>
> <FamilyTreeM...@xxxxxx> wrote:
Quote:

> > "Ty" <tylersh...@xxxxxx> wrote in message
>
Quote:

> >news:1fd1a532-763e-447c-b5ef-660330d2eaac@xxxxxx
>
Quote:
Quote:

> > > Hi Mike
>
Quote:
Quote:

> > > sorry about the missing info.
>
Quote:
Quote:

> > > In the setup i go to the FileSystem, choose "Primary output from...",
> > > then RightClick and then "Create Shortcut to Primary Output...". then
> > > i place the created shortcut in "User's Desktop" and "User's Programs
> > > Menu".
>
Quote:
Quote:

> > > that's about it...
>
Quote:
Quote:

> > > Thank you!
>
Quote:

> > The only thing that pops into my mind, as I only have express where I am
> > now, is this. *I recall once "copying" the created icon to the desktop in
> > the file system and seeing what you are observing. *Look at the example link
> > here. *The steps are slightly different.
>>
Quote:

> > --
> > Mike
>
> Hi Mike
>
> This looks like VS2005. in 2008 there's no "Create New Shortcut".
>
> i'll have to investigate further. it's really strange that the
> "Target" is greyed out in these setup-created shortcuts.
sorry, i misslooked. there's a "Create New Shortcut" in VS 2008. i
tried it using this:
http://www.experts-exchange.com/Prog..._23833212.html

but the effect is exaxtly the same. Target is greyed out and it's
checking something if a new user clicks the icon...
My System SpecsSystem Spec
Reply

RB


Thread Tools


Similar Threads for: VS 2008 Setup Project, shortcut problem
Thread Forum
SBS 2008 setup / DHCP problem Vista Forums
Vista Setup Project - Rights Issue .NET General
Checking serial key with setup project. .NET General
MSI Installer VS 2005 Setup Project .NET General
Advertised Shortcuts in a setup and deployment project .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd