473,846 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Uninstall problems with Office PIA

Hello,

I've developed a solution with VS2003, which automates Excel XP. I created a
setup project featuring install of the Primary Interop Assembly
'microsoft.offi ce.interop.exce l.dll' in the GAC. I added a condition: If the
dll already exists (correct version) in the GAC then a new install will be
canceled. This condition run. But if I uninstall my program, the entry in the
GAC will be removed. Why?
Nov 17 '05 #1
5 3317

"Maik" <Ma**@discussio ns.microsoft.co m> wrote in message
news:B1******** *************** ***********@mic rosoft.com...
Hello,

I've developed a solution with VS2003, which automates Excel XP. I created
a
setup project featuring install of the Primary Interop Assembly
'microsoft.offi ce.interop.exce l.dll' in the GAC. I added a condition: If
the
dll already exists (correct version) in the GAC then a new install will be
canceled. This condition run. But if I uninstall my program, the entry in
the
GAC will be removed. Why?


You should not add the condition, just add the assembly to the GAC, if this
version is already installed it's reference count will be incremented. So
when you uninstall you won't delete the assembly from the GAC, you only
decrement the reference count.

Willy.
Nov 17 '05 #2
I've solved the problem. But I have another Question. How can I check if my
assembly in the GAC is used by another program? I use this information for
the uninstall procedure.
Nov 17 '05 #3
Thanks. I've deleted the condition. The setup runs perfect.

I have thought out following setting. I install a new Primary Interop
Assembly with my setup. After two weeks a second program refers to this
assembly. If I uninstall my program, will the assembly be removed from the
GAC?

Maik
Nov 17 '05 #4

"Maik" <Ma**@discussio ns.microsoft.co m> wrote in message
news:5C******** *************** ***********@mic rosoft.com...
I've solved the problem. But I have another Question. How can I check if
my
assembly in the GAC is used by another program? I use this information for
the uninstall procedure.


You don't have to care about it, each GAC assembly is ref counted, when you
install an assembly (same version) it's counter is incremented if already
present else it's set to 1.
If you uninstall the ref counter is decremented and the assembly will be
removed when the ref counter reaches 0.

Willy.
Nov 17 '05 #5
Thanks a lot for helping me Willy.

Greeting from Austria
Maik

"Willy Denoyette [MVP]" wrote:

"Maik" <Ma**@discussio ns.microsoft.co m> wrote in message
news:5C******** *************** ***********@mic rosoft.com...
I've solved the problem. But I have another Question. How can I check if
my
assembly in the GAC is used by another program? I use this information for
the uninstall procedure.


You don't have to care about it, each GAC assembly is ref counted, when you
install an assembly (same version) it's counter is incremented if already
present else it's set to 1.
If you uninstall the ref counter is decremented and the assembly will be
removed when the ref counter reaches 0.

Willy.

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1476
by: Ray | last post by:
I bought/installed the upgrade to Visual Studio .Net Professional 2003 (from 2002). I was surprised that it did not appear to uninstall (or overlay) my old version (2002) of Visual Studio .Net Professional. There are two sets of Framework and Visual Studio on both the "conrol panel/program add-remove" and two sets of menu's off the "start/programs". I'd just uninstall the old (as the new has "2003" off of everything) ... but it just...
9
2300
by: Fan Ruo Xin | last post by:
Hi, We only purchased db2 udb license for AIX platforms. So I have to install the DB2 UDB Version8.1 tried code on my laptop (Win2k). I haven't used it for a long time. When I tried to bring the db2 instance up this week, I found I already past the expiration date. I ran uninstall/reinstall db2 code a couple of times, but I was always told - no valid license key. ======= 2005-03-11-13.23.19.879000 Instance:DB2 Node:000...
1
1751
by: JIMMIE WHITAKER | last post by:
Can some tell me how to manually uninstall (completely remove) office 2000 from a computer with windows xp home. I do not have the cd, and I need it off in order to install office 97, I have this cd. It came this way used, and I need office 2000 gone. Please help. I've tryed the microsoft site, but didn't see a manual remove in search. They have a utility, but does not work with windows xp.
5
27745
by: Bryan | last post by:
I am writing a C# program that needs to see if a particular program is installed (it would be listed in the "Add or Remove Programs" list from the Control Panel) and uninstall it. Is there a way to do this?.. Thanks for any help... Bryan
2
6125
by: pc | last post by:
hi everyone, we have a server on which someone blew away the MySQL 4 progs directory before installing MySQL 5. When installing MySQL 5 the installation failed with an error stating that it was unable to create system tables as the MySQL 4 directory did not exist. We are now unable to uninstall MySQL 5: # rpm -i
0
1196
by: Marc Scheuner | last post by:
Folks, I'm facing some problems with the cool new "app_offline.htm" feature in ASP.NET 2.0. My web app is being bundled up into an .MSI and installed by executing that MSI - works nicely. My virtual directory has been created manually, before the app's installation. Now I was hoping to be able to just drop in an "app_offline.htm" file
0
2420
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the Windows Uninstall Tool you can download. Then I installed Visual Studio 2005 Team Edition ENU. This was a trial version for 180 days.
7
2291
by: gngui | last post by:
Hi, I am using the Microsoft Office Access 2003 Developer Extensions to package a Ms Access application. After packaging & running setup, the installation works & is completed OK. The problem is with uninstalling. If I install the package to the default folder i.e \program files\"my package"\, the uninstall works fine & deletes the folder "my package" with all its contents. If i install the package in a non default folder e.g. \"my package"\,...
6
2032
by: =?Utf-8?B?bW9taWVfYmVhcg==?= | last post by:
I have genuine MS on my computer and this download that was somehow loaded on to my computer says I do not or that I may be at risk. How do I get rid of this pop up.
0
9879
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
10643
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10705
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7050
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5907
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4113
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.