MSFN Forum: WPI Not Installing Before Desktop Loads - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WPI Not Installing Before Desktop Loads Simple cmd file to get you back working Rate Topic: -----

#1 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 02 December 2008 - 05:33 PM

There seems to be some confusion about why WPI is not doing the installs before the desktop is loaded. We always had a problem with Office not installing correctly for some people. It worked for me, but not others, seemingly randomly. We finally figured out, by pure chance, that 2 reg keys needed to be changed from their default values. How this is handled is determined by when/where you start WPI.

From desktop, network share
When started from here, WPI starts, checks the reg keys, if need to be changed it changes them, quits, restarts to refresh the new key values, then runs normally. When quit, it puts the keys back to their original value.

After a fresh install from DVD
This is where the problem is happening. Like above, starts, checks, changes, quits, DESKTOP STARTS TO LOAD, restarts, does installation. Since WPI had to quit, the calling scripts continues on not knowing that WPI is going to restart. No way to tell it that. So what you have to do is change the reg keys in your cmd script before WPI is started.

YOU MUST CHANGE THE REG KEYS IF YOU ARE INSTALLING OFFICE OR NOT. IT MUST BE DONE!!!

Here are the files you need to use with the reg key changes. These are as basic and old school as can be. Put these in the $OEM$ folder.

cmdlines.txt
[COMMANDS]
"RunOnceEx.cmd"


RunOnceEx.cmd
@ECHO OFF

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /V "Disable Script Debugger" /T "REG_SZ" /D "no" /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /V "DisableScriptDebuggerIE" /T "REG_SZ" /D "no" /F

for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:
set wpipath=%drive%\wpi

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\001 /V 1 /D "%wpipath%\WPI.hta" /f

EXIT


If you have something better, please post it. This is just something to get you started.

This post has been edited by mritter: 02 December 2008 - 05:45 PM



#2 User is offline   gospeed 

  • Member
  • PipPip
  • Group: Members
  • Posts: 103
  • Joined: 21-March 04

Posted 02 December 2008 - 06:05 PM

this worked for me, hopefully Zeus will try it as well and report back. Great job guys! I can finally use the new WPI on my DVD:)

#3 User is offline   ZEUS__ 

  • Member
  • PipPip
  • Group: Members
  • Posts: 147
  • Joined: 03-January 08
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 03 December 2008 - 10:48 AM

yeappp, :D I just tried and this worked for me too, thanks:)

#4 User is offline   gospeed 

  • Member
  • PipPip
  • Group: Members
  • Posts: 103
  • Joined: 21-March 04

Posted 05 December 2008 - 02:54 AM

one thing I am noticing that didnt happen with my old setup is that on some pc's, there will be a dialogue box that pops up as wpi is starting up that requests a restart.... "windows has finished installing new devices" blah blah. Do you know if there is a way to suppress this?

This post has been edited by gospeed: 05 December 2008 - 02:54 AM


#5 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 December 2008 - 03:02 AM

I have had that before. It's really got nothing to do with WPI.

#6 User is offline   Stoner81 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 342
  • Joined: 15-June 08

Posted 15 December 2008 - 06:00 PM

Thanks for the info m8.

#7 User is offline   NecroSandro 

  • Group: Members
  • Posts: 7
  • Joined: 16-December 06

Posted 17 December 2008 - 11:49 PM

Hello

this method is for xp only?

because i m new on wpi , and i want start wpi just before vista go to deskop ( if its possible ) , i thinks i need put cmd in autounattended.xml but i dont know how

big thanks and sorry for my bad english :D

#8 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 December 2008 - 12:10 AM

For vista you need this archive... http://www.wpiw.net/...ads/sources.rar

Simply extract to the root of your vista CD and off ya go.

#9 User is offline   NecroSandro 

  • Group: Members
  • Posts: 7
  • Joined: 16-December 06

Posted 18 December 2008 - 12:42 AM

thank you foryou quick reponse ( answer? :D)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy