Jump to content

LoadDesktopBeforeInstall does not detect if desktop is already loaded


Recommended Posts

Posted

Hi.

Using WPI v7.1.1, in useroptions.js, if LoadDesktopBeforeInstall=true, wpi does not detect if the desktop is already loaded.

In this scenario, the first time wpi is launched, the desktop is already loaded, and so wpi will exit but will not relaunch itself until a manual reboot for example.

Also in this scenario, if LoadDesktopBeforeInstall=false, the first time wpi is launched, it runs ok, but then subsequent launches (after a %reboot% for example) will launch before the desktop is loaded.

Any ideas \ work-arounds?

Thank you.


Posted

It works correctly, just may not seem "normal". You wouldn't normally have that checked if you run WPI from the desktop, as in a network share. So WPI thinks you did a fresh Windows install and was started then, not from desktop.

After Windows is done installing, WPI starts, you pick the files to install, hit install, WPI closes, desktop loads, WPI starts the install. That is correct.

When set to false, yes, after a reboot it starts before desktop is loaded. This is the original "normal" method.

I don't know of a simple, guaranteed way to check if the desktop is loaded and it is set to true to start install right away, not after a reboot. That is just how it is.

Posted

Thank you for the reply and clarification.

I figured out I was using RunWPI.inf (from post_$oem$.rar) instead of what I should have been using which is RunWPI.exe (from $oem$.rar).

Using RunWPI.exe it works as expected.

Thanks again!

:)

  • 1 month later...
Posted

I am experiencing this limitation yet again and would like to make this a feature request for the next version of WPI.

I would like to have the ability to use the same iso file for unattended installation as well as manually launching wpi from the iso where LoadDesktopBeforeInstall=true.

Some suggestions for detecting whether the desktop is already loaded or not:

1. scan for running instance of explorer.exe

2. GetDesktopWindow Windows API call

Thank you.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...