Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / September 2005

Tip: Looking for answers? Try searching our database.

Ignore Previously Installed Versions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
krose@rockstarsandiego.com - 01 Sep 2005 23:43 GMT
I have created an Installer using the "Setup Wizard" in Visual Studio.
I've added a custom action to this as a seperate DLL written in C#.
The custom action has to install files from another location on the
network.

Everything is working and going well.

The problem I am having now is that once it has been installed once, I
am unable to install it again as I get an "Another version of this
product is already installed" error message.

As I understand it I can get around this problem by changing the
Product Code in the installer, but this is not possible as the files on
the network are constantly changing and I can not change the product
code and regenerate the installer every time a file changes.

What I need to do is force my Installer to just ignore any versions
previously installed and just proceed as if it is always the first
time.

Does anyone know how I can do this?

Thanks
Kevin
Tom - 02 Sep 2005 01:20 GMT
Same request here!
Also - could anyone tell me where the Setup options are documented?

   -- Tom

> What I need to do is force my Installer to just ignore any versions
> previously installed and just proceed as if it is always the first
[quoted text clipped - 4 lines]
> Thanks
> Kevin
Steve - 02 Sep 2005 10:25 GMT
In the propeties of your instal project there are two properties you are
interested in

"DetectNewerInstalledVersion - YES/NO"

and

"RemovePreviousVersions - YES/NO"

There is also a version number property which you'll need to increment so it
knows its a different version.

I am new to this so this could be totally not what you after but have a
look, it seems to work for me.  

> Same request here!
> Also - could anyone tell me where the Setup options are documented?
[quoted text clipped - 9 lines]
> > Thanks
> > Kevin
Tom - 02 Sep 2005 19:17 GMT
Thanks.  Finally found them documented under  'Deployment Properties'.
Once you know what they are called (as a group) they can be found in the
documentation -- until then -- it's tough sledding...

   -- Tom

> In the propeties of your instal project there are two properties you are
> interested in
[quoted text clipped - 25 lines]
>> > Thanks
>> > Kevin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.