Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LoadDesktopBeforeInstall does not detect if desktop is already loaded

Featured Replies

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.

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.

  • Author

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...
  • Author

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.