473,386 Members | 1,644 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,386 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.

Nov 21 '05 #1
2 2080
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.

Nov 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.


Nov 21 '05 #3

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

Similar topics

1
by: Ryan Rogers | last post by:
The FileSystemWatcher Class has a filter property where you can tell it what files you want it to watch for. I need it to watch for *.p** and *.f** files both and have tried giving the filter the...
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...
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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
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,...

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.