473,396 Members | 1,938 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,396 software developers and data experts.

FileSystemWatcher help please....

I want to develop an installation watcher to watch over programs as they
install themselves to the PC.

The FileSystemWatcher will enable me to see all files created or changed
within any subdirecty of any specified path. But, that's *too* much
information. Windows is constantly changing files and I don't want any of
that information (besides.....all of that info could cause a buffer overflow
in the FileSystemWatcher).

Is there a way to watch a PROGRAM's activity on the PC. Like.....is there a
way to choose a program, launch the program and record everything it does to
the file system and registry without having to monitor every folder and
subfolder with FileSystemWatcher?

I just am interested in the changes made by the installation program for use
in a freeware uninstaller written entirely in .Net.

One reason is that 90% of installation programs leave registry info even
when they are "uninstalled". To me, uninstall means "remove all of your
crap from my PC". Evidentially, most software manufacturers feel
differently.

Jul 21 '05 #1
2 1417
You might want to do someting like this...

1) Setup a registry watcher that gets triggered upon additions to the
reigistry hive.

2) Setup some kind of hook to see what someone runs a msi file or a file
along the name of setup.exe or something.
"Jim Hubbard" <re***@groups.please> wrote in message
news:8f********************@giganews.com...
I want to develop an installation watcher to watch over programs as they
install themselves to the PC.

The FileSystemWatcher will enable me to see all files created or changed
within any subdirecty of any specified path. But, that's *too* much
information. Windows is constantly changing files and I don't want any of
that information (besides.....all of that info could cause a buffer overflow in the FileSystemWatcher).

Is there a way to watch a PROGRAM's activity on the PC. Like.....is there a way to choose a program, launch the program and record everything it does to the file system and registry without having to monitor every folder and
subfolder with FileSystemWatcher?

I just am interested in the changes made by the installation program for use in a freeware uninstaller written entirely in .Net.

One reason is that 90% of installation programs leave registry info even
when they are "uninstalled". To me, uninstall means "remove all of your
crap from my PC". Evidentially, most software manufacturers feel
differently.

Jul 21 '05 #2
re: 1) Any ideas on the code that would be used to set up the registry
watcher? Right now, all I know to do is read the registry before and after
the install and compare them. But, what if another application (running in
the background) makes a registry change or addition?

That's why I need a way to monitor the system events of a particular
process.

re: 2) this is not needed as the setup will be launched from the
application.

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:em**************@tk2msftngp13.phx.gbl...
You might want to do someting like this...

1) Setup a registry watcher that gets triggered upon additions to the
reigistry hive.

2) Setup some kind of hook to see what someone runs a msi file or a
file
along the name of setup.exe or something.
"Jim Hubbard" <re***@groups.please> wrote in message
news:8f********************@giganews.com...
I want to develop an installation watcher to watch over programs as they
install themselves to the PC.

The FileSystemWatcher will enable me to see all files created or changed
within any subdirecty of any specified path. But, that's *too* much
information. Windows is constantly changing files and I don't want any
of
that information (besides.....all of that info could cause a buffer

overflow
in the FileSystemWatcher).

Is there a way to watch a PROGRAM's activity on the PC. Like.....is
there

a
way to choose a program, launch the program and record everything it does

to
the file system and registry without having to monitor every folder and
subfolder with FileSystemWatcher?

I just am interested in the changes made by the installation program for

use
in a freeware uninstaller written entirely in .Net.

One reason is that 90% of installation programs leave registry info even
when they are "uninstalled". To me, uninstall means "remove all of your
crap from my PC". Evidentially, most software manufacturers feel
differently.


Jul 21 '05 #3

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

Similar topics

7
by: Allen Anderson | last post by:
I'm trying to figure out a way to catch when a file has been written to a directory. I currently have it where I can catch when the file begins writing, but this isn't helpful as I need to know...
2
by: Jim Hubbard | last post by:
I want to develop an installation watcher to watch over programs as they install themselves to the PC. The FileSystemWatcher will enable me to see all files created or changed within any...
9
by: Tushar | last post by:
Followup-To: microsoft.public.dotnet.general Does anyone know when is this event raised, is it: 1) When the file is created but may not have been closed 2) When the file is created AND it has...
7
by: Frank | last post by:
Hi, I am using FileSystemWatcher to track the change in a text file. Whenever I run the program I get 99% CPU utilization. The code doesn't do anything just sits and waits in a while loop until...
12
by: ljh | last post by:
Has anyone else noticed that the FileSystemWatcher raises the changed event twice when a file is changed? Do you have any idea why this is the case?
1
by: Mahita | last post by:
Hi, I am coding a Windows Service in which I am using the "OnCreated" event of FileSystemWatcher class to do some processing when a new file is created in a particular folder. However I have...
5
by: Goran Djuranovic | last post by:
Hi all, I have a file system watcher service that works fine on a local hard drive, but will not work across the network. I tried both: mapping the drive and "\\..." path both no luck. I don't...
3
by: =?Utf-8?B?RGFuaWVs?= | last post by:
I'm working with the FileSystemWatcher which has a Created event. But this event is raised as soon as the new file begins to be written on disk. What I want is a notification after a file being...
5
by: =?Utf-8?B?Sm9obiBT?= | last post by:
I am trying to find out if there is a way to tell if there is already a filesystemwatcher (created by a webservice) monitoring a folder. I have a webservice that creates a filesystemwatcher,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...
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.