473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

reading add/remove programs? or help making distribution package

hi

I'm wondering whether there is a way in C# to be able to see whether a
program has been installed or not?

I want to create a distributional executeable that will have a few
components and show which has been installed already and if it hasn't
been installed then allows them to install it, also not allowing them
to install a certain package until dependencies are installed...

I tried to figure how to do this with a package creater but couldn't
find one to do what I want as I already have the .msi files I want to
distribute, so I just want a simple frontend and not mess around having
to redo it all.

I know how to run the files with C# and see when they're completed...
but want to make sure that its also in Add/Remove programs first before
continuing with anything else that depends on that package.

any ideas?

thanks
Kris Wragg

Mar 16 '06 #1
2 4251
vj
You don't have to look at Add remove programs, its just a list of programs
installed. I believe there is a list in the registry for this list. This
gets update everytime you run a MSI. I can't remember the exact location of
the list...

Also another note.. the MSI packager with VS.NET 2003 is powerful, you can
write custom Actions and do things before Install or after Install.. the
codeproject.com has a sample I believe.

VJ

"Kristopher Wragg" <xa****@xafiers-home.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
hi

I'm wondering whether there is a way in C# to be able to see whether a
program has been installed or not?

I want to create a distributional executeable that will have a few
components and show which has been installed already and if it hasn't
been installed then allows them to install it, also not allowing them
to install a certain package until dependencies are installed...

I tried to figure how to do this with a package creater but couldn't
find one to do what I want as I already have the .msi files I want to
distribute, so I just want a simple frontend and not mess around having
to redo it all.

I know how to run the files with C# and see when they're completed...
but want to make sure that its also in Add/Remove programs first before
continuing with anything else that depends on that package.

any ideas?

thanks
Kris Wragg

Mar 16 '06 #2
Hello Kristopher,

Try this article on the MSDN this should help you a lot

http://support.microsoft.com/default...b;en-us;821775

Regards
Scott Blood
C# Developer

"vj" <vi********@yahoo.com> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
You don't have to look at Add remove programs, its just a list of programs
installed. I believe there is a list in the registry for this list. This
gets update everytime you run a MSI. I can't remember the exact location
of the list...

Also another note.. the MSI packager with VS.NET 2003 is powerful, you can
write custom Actions and do things before Install or after Install.. the
codeproject.com has a sample I believe.

VJ

"Kristopher Wragg" <xa****@xafiers-home.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
hi

I'm wondering whether there is a way in C# to be able to see whether a
program has been installed or not?

I want to create a distributional executeable that will have a few
components and show which has been installed already and if it hasn't
been installed then allows them to install it, also not allowing them
to install a certain package until dependencies are installed...

I tried to figure how to do this with a package creater but couldn't
find one to do what I want as I already have the .msi files I want to
distribute, so I just want a simple frontend and not mess around having
to redo it all.

I know how to run the files with C# and see when they're completed...
but want to make sure that its also in Add/Remove programs first before
continuing with anything else that depends on that package.

any ideas?

thanks
Kris Wragg


Mar 16 '06 #3

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

Similar topics

6
by: uri bushey | last post by:
I have a Python program that is built on an infrastructure of quite a few other programs, but I would like to create a standalone nonetheless. It doesn't necesarily have to be its own executable,...
1
by: Mathieu Malaterre | last post by:
Hello, I thought this would be easy but I guess I didn't get the distutil feeling. I am trying to write a setup for install my package but I don't understand how to do that. organisation: ...
31
by: poisondart | last post by:
Hi, I'm not sure if this is the right group to post this. If not, then I would appreciate if somebody could point me to the correct group. This is my first time releasing software to the...
0
by: Desmond L | last post by:
I'm tring to use CodeWarrior 9 to build a Mach-O target application on Mac OS X that uses the embedded mysql server library (libmysqld.a). I'm using the library that comes from standard Mac OS X...
2
by: Kalvin | last post by:
When I create an install package, all I see is a folder Icon in the Add/Remove programs. I have set the AddRemoveProgramsIcon property in my install package, but that doesn't do anything. I have...
4
by: Michael A. Covington | last post by:
Greetings, I am working on a program that is in beta testing and goes through a new version every week or so. When there's a new version, go into the setup project change the Product Code but...
3
by: Arne Beruldsen | last post by:
How do you read the serial number to a hard drive? Thanks...Arne
26
by: vlsidesign | last post by:
I am a newbie and going through "The C programming language" by Kernighan & Richie on my own time (I'm not a programmer but I want to learn because it can save me time in my normal job, and it is...
25
by: Daniel Jonsson | last post by:
So, I've reached the point where my building pipeline tools actually needs to be used by other people in my company. By this reason I actually need to think about the usability, and I've come to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.