Groups | Blog | Home
all groups > visual studio .net setup > may 2006 >

visual studio .net setup : Installer plus application run after installation. Only application should run.


Chukkalove
5/18/2006 12:00:00 AM
Visual studio 2003 project c#
Setup project added afterwards.

Setup run on a clean VMWare virtual pc appears to do fine.

When I run my application from both desktop icon and in startup folder
straight after the initial install, the application runs.
When i open the application again later, firstly it reinstalls and after
that the application will run.

Something is screwy but I dont know how to find out what's gone wrong.
In my setup project, the desktop icons property point to primary output as
Id expect. Primary output I hope is my application executable.

Any ideas on tracking this down?


Phil Wilson
5/18/2006 7:16:22 AM
Does your running application remove any files or registry entries? If so,
repair is normal - that's the way Windows Installer works.

I never use primary output btw. You don't have to "hope" that it's your
executable. You can just add the exe by browsing to it and adding it.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

Phil Wilson
5/18/2006 10:49:54 AM
Strictly speaking it doesn't monitor the files, but when you use a shortcut
that's when things get checked.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

Chukkalove
5/18/2006 3:29:53 PM
I know what's happening.

I copy then delete a file from a subdirectory of the install when my
application is run.
Windows installer sees this deletion and reinstalls it again.
I wasnt aware that the installer monitors the files in the directory, which
is a bit of a nuisance.
I guess there's some way to turn this off but I'm not sure how to do it at
the moment.

thanks all anyway, this had me stumped all morning


AddThis Social Bookmark Button