Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Posts
    470

    Huh? Detecting installation on a 'virtual' OS ?

    Hi,

    is it somehow possible to detect if my installer is started on a 'virtual' OS - like one running inside VMWare, Microsoft's Virtual PC and other emulators?
    So far I have no clue what may be used to make a difference, maybe someone here has an idea?

    Thanks.

  2. #2
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    I don't know of any 'magical' place to look for any and all emulators. I did a quick test on a new VMWare XP install (without the VMWare tools installed) and there is a ton of registry entries containing the string 'vmware'. I assume you could weed through and find one that would be fairly consistant. The following is probably a good bet:

    HKLM\System\CurrentControlSet\Services\Disk\Enum
    Key=0
    Value=IDE\DiskVMWare_Virtual_IDE_Hard_Drive ...

    I would assume that the MS VPC would leave as long of a trail as well.

  3. #3
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    I doubt those registry entries would be made inside the emulated system's registry...although you never know, VMWare may set a specific registry key within the emulated system's registry to indicate that it's an emulated system.

    A quick search through the registry for "virtual" on a Virtual PC emulation didn't turn up any non-standard keys.

    With a device driver you could try something really out there like walk the int3 hook table to see if the debug interrupts are trapped, but even that might not work if the emulator completely emulates the hardware in software, in which case you'd only see what the emulator simulates.

    If you find out, let us know...this is an interesting question.
    --[[ Indigo Rose Software Developer ]]

  4. #4
    Join Date
    Mar 2005
    Location
    Indianaoplis, IN USA
    Posts
    127
    I've got to agree with bnkrazy. I think looking in the registry for hardware identifiers is your best bet.

    I'm not entirely sure about VMWare, but I know with Virtual PC when you install a "child" OS it is completely unaware that it's being installed in a virtual machine. If that's the case, the only thing that would be different (or consistant... depending on how you look at it) would be the hardware Identifiers.

    It looks like VMWare emulates a hard drive that has a hard drive named "DiskVMWare_Virtual_IDE_Hard_Drive" And in Virtual PC it emulates a CD ROM drive called "MS" Both values can be searched for in the registry. (the HD under HKLM\ENUM\ESDI and the CD under HKLM\ENUM\SCSI if memory serves me correct, but it will also depend what "child" OS you are looking in also)

  5. #5
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    Below link may provide an answer to 'how' to detect for the 'real coders'
    out there..may be something in here for the Dev team ?

    Source is free for commercial and non commercial use..

    try the link and have a play with this one...

    http://www.naughter.com/dtwinver.html


    There is a win32 prebuilt and the code for C++ etc..

    if I am reading it correctly ..will detect the 'emulated OS and the
    'underlying real Os' is running from..

    HTH some of you gurus come up with a detection..or maybe Lorne
    --add to the Os detection table

Similar Threads

  1. Handling of Installation of External Components
    By John1969john in forum Setup Factory 7.0
    Replies: 2
    Last Post: 04-08-2005, 09:05 AM
  2. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM
  3. HOWTO: Repackage an Existing Installer
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-22-2002, 01:25 PM
  4. INFO: Troubleshooting ActiveX Control Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-03-2002, 10:19 AM
  5. Detecting running app before installation
    By Beaverman in forum Setup Factory 5.0
    Replies: 1
    Last Post: 09-29-2000, 01:56 PM

Posting Permissions

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