Results 1 to 4 of 4

Thread: [RESOLVED] Why is my setup running virtualised?

  1. #1

    Thread Starter
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Resolved [RESOLVED] Why is my setup running virtualised?

    In order to finish the project I am currently working on, I needed to gain access to the path of my setup exe application while it is running.

    So I started by putting together a separate VB6 app which would return the full path of an exe file given one of its form's hwnd (windows handle). Then I ran my setup application, and fired up my test application at the same time. To my surprise I discovered that the path returned from the Setup file while it was running pointed to the AppData\Local\Temp directory (rather than its actual location on my hard drive) meaning that it seems to be running in virtualised mode.

    The weird thing is that as the setup file contains the word "setup" Windows automatically asks for admin credentials so that it runs elevated with the rights needed to conduct the install. As far as I am aware elevating with Admin Credentials should have prevented any virtualisation from occurring, so why is my setup running virtualised?
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Why is my setup running virtualised?

    maybe the point is that any setup is considered temporary, as in most cases it only needs to run once, to install some program
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Why is my setup running virtualised?

    It probably isn't being virtualized, but without more detail it's hard to say.

    A PDW setup package for example works by first running setup.exe which is a bootstrapper. This program's mission in life is to extract the rest of the setup files from the CAB archive (into a temporary location), install the VB6 runtimes, setup kit, and setup uninstall programs if included, then run setup1.exe.

    So are you really looking for your setup1.exe program in this case? That would be in a temp folder.


    People often wrap a PDW or other setup package in a self-extracting archive. When this "single EXE" is run it extracts the setup package into a temporary folder and then runs the setup.exe or equivalent program, or runs msiexec against an MSI file, etc.

  4. #4

    Thread Starter
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Re: Why is my setup running virtualised?

    Thank you for that good almost comprehensive answer dilettante, after thinking about it I agreed that the setup app might be trying to use the temp directory for extraction purposes, and even though I had checked two windows obtained via spy++, I decided to check all of the associated windows linked to the setup and found one that was running from the Hdd file location with an entirely different process Id.

    So the bootstrapper architecture you mentioned seems to be implemented in my case, specifically, a bootstrap setup process starts to run from the HDD, which then creates at least one sub process which runs from the User\AppData\Local\Temp directory which performs other installation tasks most likely involving decompression and creates additional windows as it does so, no virtualisation whatsoever.
    Last edited by Witis; Dec 23rd, 2011 at 09:48 AM.
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

Posting Permissions

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



Click Here to Expand Forum to Full Width