Results 1 to 6 of 6

Thread: Logging of an application install

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    256

    Logging of an application install

    I am trying to code a VBScript that will record line by line in notepad (txt file) what an application is doing. For example, when I run "Install.exe", I want the script to monitor what files were dropped and what location they were placed in...
    I figured I could do something like this with FileMon, but I'd rather have a script that I can easily edit out and replace the "install.exe" file with various others to see where the exe installs files to.

    So far I was thinking I could use the >> command to get it to feed line by line in a text file, but that doesnt seem to work. An added note, the file is an exe, which when decompressed runs an MSI file that will actually do the installation of files.

    Impossible to do? Better off in another language?
    As always, I appreciate your help.

    ...Can you tell I am trying to set up something for automation?
    Sex is like \"Social Security\". You get a little each month, but it\'s not enough to live on.

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    I figured I could do something like this with FileMon, but I'd rather have a script that I can easily edit out and replace the "install.exe" file with various others to see where the exe installs files to.
    Why is it different from editting the Filter in Filemon?

    How FileMon Works

    For the Windows 9x driver, the heart of FileMon is in the virtual device driver, Filevxd.vxd. It is dynamically loaded, and in its initialization it installs a file system filter via the VxD service, IFSMGR_InstallFileSystemApiHook, to insert itself onto the call chain of all file system requests. On Windows NT the heart of FileMon is a file system driver that creates and attaches filter device objects to target file system device objects so that FileMon will see all IRPs and FastIO requests directed at drives. When FileMon sees an open, create or close call, it updates an internal hash table that serves as the mapping between internal file handles and file path names. Whenever it sees calls that are handle based, it looks up the handle in the hash table to obtain the full name for display. If a handle-based access references a file opened before FileMon started, FileMon will fail to find the mapping in its hash table and will simply present the handle's value instead.
    As far as I know that bolded statement isn't possible in VB(script)..


    NB Most installers (can) create a logfile with all the information you need..
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  3. #3
    Senior Member
    Join Date
    May 2002
    Posts
    256
    The reason I dont want to use Filemon is it is too "powerful" letting me know when things are opened, when files are closed etc. I want it to be more like this file was placed in x directory...
    MSI installers will show what files were placed, but again it is too verbose and records way too many things. This app should be fairly simple and dumb.
    Sex is like \"Social Security\". You get a little each month, but it\'s not enough to live on.

  4. #4
    Senior Member
    Join Date
    Dec 2003
    Location
    Pacific Northwest
    Posts
    1,675
    In our Win98 days, Veritisoft made a program called "Remove IT" , that did that very thing. Don't know if they are still around. But I still have the 2 floppies...lol

    Found it! The Quarterdeck Company bought it from Veritsoft: Here

    cheers.
    Connection refused, try again later.

  5. #5
    Senior Member
    Join Date
    May 2002
    Posts
    256
    Son of a .....
    From QuarterDeck to Verisoft to Symantec to dead product
    Cough cough...torrent a copy of the program LOL jk
    Cant seem to find it in my short amount of time searching
    Sex is like \"Social Security\". You get a little each month, but it\'s not enough to live on.

  6. #6
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    Originally posted here by wildred
    MSI installers will show what files were placed, but again it is too verbose and records way too many things.
    Make it easier on yourself and create a program that's able to filter these logs. That should be relatively easy. KISS my friend..
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •