How can I see what an executable file is writing to disk and to the registry? [duplicate]

Possible Duplicate:
Looking for an program installer monitor or recorder

What software can be used in order to "record" all the files written to the disk and registry entries beeing modified by an .exe or other installers?


Solution 1:

Process Monitor (Windows Sysinternals) from Microsoft TechNet does what you're asking for.

From the Introduction:

Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity. It combines the features of two legacy Sysinternals utilities, Filemon and Regmon, and adds an extensive list of enhancements including rich and non-destructive filtering, comprehensive event properties such session IDs and user names, reliable process information, full thread stacks with integrated symbol support for each operation, simultaneous logging to a file, and much more. Its uniquely powerful features will make Process Monitor a core utility in your system troubleshooting and malware hunting toolkit.

Screenshot:

screenshot

Solution 2:

You could try ProcMon from Sysinternals. This way you can exactly see what a file is doing. However, you have to filter on the specific file else the list will be bloated with everything else.