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 / Visual Studio.NET / Setup / March 2005

Tip: Looking for answers? Try searching our database.

Problem with RemovePreviousVersions and GAC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zdenek Drlik - 24 Mar 2005 14:26 GMT
Hello,
I am developing installer project in Visual Studio 2003 for my
components and I have a problem with upgrading assemblies in GAC. I need
upgrading these assemblies with newer ones (AssemblyVersion is the same,
but AssemblyFileVersion is different) and I wanted to do so with
installer. I set up RemovePreviousVersions to True and increase
installer Version, but after running this installer package on machine,
old assemblies from GAC are deleted, newer ones aren'nt installed there.
I must run installer package again, select Repair and after that I have
installed newer assemblies.
Is it a bug in Visual Studio installer package, or I am missing
something? If it is a bug, does any workaround or any patch to VS or
something else exist to solve this problem?
Thanks,

Zdenek D.
gyurisc - 25 Mar 2005 07:10 GMT
Hello,

Can you try to edit your msi with this tool

http://www.microsoft.com/downloads/details.aspx?FamilyID=105dfc41-801e-4441-aa75
-7696d794f109&displaylang=en


You need the tall called orca,  and move the RemoveExistingProduct before
Costinitialize in the InstallExecuteSequence table by changing the sequence
numbers.  It may help but the last time that I had a problem like this, the
solution was this ;-)

Cris
> Hello,
> I am developing installer project in Visual Studio 2003 for my components
[quoted text clipped - 12 lines]
>
> Zdenek D.
Zdenek Drlik - 25 Mar 2005 07:44 GMT
> Hello,
>
[quoted text clipped - 8 lines]
>
> Cris

Hello,
this trick helps solve my problem, thanks. ;-)

Zdenek
Phil Wilson - 26 Mar 2005 19:07 GMT
Something to watch out for with that solution is that you've taken
RemoveExistingProducts out of the audited section of the install. So you can
get a situation where you start the install, it removes the existing
product, then starts installing the new product but you have a problem and
it rolls back. It will not roll back the RemoveExistingProducts, so you are
now left with neither old nor new products installed.

Although it's true that a manually forced repair will install the assembly
into the GAC, the automatic repair also does. If you actually run the app
that uses that GAC assembly, it just repairs automatically - that's my
experience of this.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

>> Hello,
>>
[quoted text clipped - 13 lines]
>
> Zdenek

Rate this thread:







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



©2008 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.