Jump to content

Calling WPI


 Share

Recommended Posts

Hey guys...I don't know how to call the new WPI...for sure I got the wpi.cmd in my $OEM$\$1\Install folder on the hdd.....and I got WPI at %cdrom%\Install\WPI. So does your script (wpi.cmd) find WPI in that directory or has it to be @ %cdrom%\WPI??

If so, how can I modify the cmd file to start WPI from %cdrom%\Install\WPI?

Link to comment
Share on other sites


Replace the contents of wpi.cmd with the following

@ECHO OFF
REM
REM WPI startup skript.
REM

REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root.
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WIN51 set CDROM=%%i:
echo Found CD-Rom as drive %CDROM%

set WPIPATH=%~f0
echo WPI.cmd run from %WPIPATH%

REM pause && exit

REM Hide this command window
REM "%WPIPATH%\common\cmdow.exe" @ /HID

REM Special registry tweak needed
regedit /S "%WPIPATH%\common\wpi.reg"

REM This one installs any theme-supplied fonts and starts WPI
start /wait /min wscript "%WPIPATH%\common\WPI.wsf"

REM call any cleanup code here, or after this script.
exit

this will examine from where the cmd-file is run. (it would set WPIPATH to %systemdrive%\Install), but if you rewrite the WPI-path line to

set WPIPATH=%CDROM%\Install\WPI

it should work.

Link to comment
Share on other sites

Now if someone could go into detail (Dennise) about how to use autorun and ohter

methods, like I use cmdlines, call RunOnceEX then it calls hta. And I think that is

my problem with script error for length of time. I think WPI should call RunOex...

But please go into detail, if you have time.........

thanks

BD

Link to comment
Share on other sites

Am I that of a "id***" that I can't seem to configure to WPI to start???

It's looking for a wpi.wsf in a folder which by his means is a subfolder of wpi.cmd..but that's a file? :}

I don't want WPI at cmdlines.txt but my options are limiting by the virtual install :D

Please where to put wpi.cmd / wpi.hta and the rest of the folders???

Big TIA...

KoppieKoffie (CupofCoffee) :w00t:

Link to comment
Share on other sites

this my runoonceEX

cmdow @ /HID

@echo off

FOR %%d IN (D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) DO IF EXIST %%d\WIN51IC SET CDROM=%%d

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

REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\install.cmd" /f

EXIT

and my install.cmd

mdow @ /HID

@ECHO OFF

%CDROM%

cd \install\wpi

start /wait wpi.hta

start /wait poweroff Reboot -warn -warntime 30 -msg "This System Must now Reboot , This Is necessary for applications to complete installation, shortcuts to update."

exit

and i think wpi will start after 1st boot and when the software installation is over system will reboot again.

am i right?

Link to comment
Share on other sites

this thread is somewhat limited right now, as the future of WPI is in question.

If themes are left out, the method I posted should work.

If themes are put back in, (but font installation is not), the method I posted above will be fine.

If themes are put back in, and font installation is also put back in, then its the method hasi posted.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...