Jump to content

"install path" problem with wpi !


Recommended Posts

hi guys

could some one help me with my problem here :blushing:

the problem is that wpi cant identefy the path of my programs

i have my programs here

"%cdrom%\$oem$\$$\Temp\install\program1\program1.exe"

but when i try to install it using WPI an error message appeares saying that

cant find "%cdrom%\wpi\install\program1\program1.exe"

and i cant put my install folder in wpi dir coz i want to make 2 wpi.cmd files one of them will be in

"%cdrom%\$oem$\$$\Temp\wpi"

this one will launch after windows setup is done

and the other "modefied one" one is

"%cdrom%\wpi"

and this one will be the autoplay file for the cd

and i need to make both of those cmd files identefy the same path of my programs

i really appreciate your help guys :thumbup

so dont let me down please :blink:

Edited by j_h3000
Link to comment
Share on other sites


no its not aproblem i can live with that

but i must have 2 wpi each one of them has a different configs and default programs

one of them runs just after windows installation is done

and the other runs whenever i insert the cd so i'll remove the counter and other stuff

is it possible ?

Edited by j_h3000
Link to comment
Share on other sites

We can make two seperate sets of wpi folders and keep all of the installs in a common directory. but you you are aiming at is definatley possible. So get to wrk at making 2 different wpis and i will help adjust your files so that both can reside on cd...

Link to comment
Share on other sites

ok i'll do that but this could take a while "maybe one week or mor" coz i still have to add alot of programs

so can you teach me the way now? im sure that others will need these informations, and they will find it useful

or should i tell you when i finish ?

and sorry fo wasting your time but it's really important for me :no:

Link to comment
Share on other sites

Here is what you have to do:

Make 2 seperate WPI folders call them WPI1 and WPI2.

Configure them to suit you needs and have you install paths be %cdrom%\install.

Configure you WPI commands like such:

For WPI1 (Post Installation)

@ECHO OFF

REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.
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:\wpi.ico set CDROM=%%i:
echo Found CD-Rom as drive %CDROM%

REM Determine the WPI startup path.
REM if wpi should run off the cd the replace %~dp0 with %cdrom%.
set wpipath=%cdrom%\wpi1

REM Hide this command window.
%wpipath%\Tools\cmdow.exe @ /hid

REM Force resolution to needed size for wpi interface.
--start %wpipath%\Tools\VideoChanger.exe 1280x1024x32@85 -q

REM Font installation - the smooth and customizable way.
--start /wait %wpipath%\Tools\fonts\fontinstaller.exe

REM Special registry tweak needed.
regedit /s "%wpipath%\common\wpi.reg

REM Make WPI directory the current directory.
for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:
cd "%wpipath%"

REM Start WPI and wait for its end
start /wait %windir%\system32\mshta.exe "%CD%\wpi.hta"

REM Cleaning up the desktop.
del /s/q "%userprofile%\desktop\*.lnk"

REM Rebooting the sytem to finalize the installation process.
--shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec..."

del %0

For WPI2 (For Whenever)

@ECHO OFF

REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.
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:\wpi.ico set CDROM=%%i:
echo Found CD-Rom as drive %CDROM%

REM Determine the WPI startup path.
REM if wpi should run off the cd the replace %~dp0 with %cdrom%.
set wpipath=%cdrom%\wpi2

REM Hide this command window.
%wpipath%\Tools\cmdow.exe @ /hid

REM Force resolution to needed size for wpi interface.
--start %wpipath%\Tools\VideoChanger.exe 1280x1024x32@85 -q

REM Font installation - the smooth and customizable way.
--start /wait %wpipath%\Tools\fonts\fontinstaller.exe

REM Special registry tweak needed.
regedit /s "%wpipath%\common\wpi.reg

REM Make WPI directory the current directory.
for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:
cd "%wpipath%"

REM Start WPI and wait for its end
start /wait %windir%\system32\mshta.exe "%CD%\wpi.hta"

REM Cleaning up the desktop.
del /s/q "%userprofile%\desktop\*.lnk"

REM Rebooting the sytem to finalize the installation process.
--shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec..."

exit

:end

Edit the autorun.inf as follows:

[AutoRun]

open=wpi2\wpi.cmd

icon=wpi.ico

Build your cd directory structure like this:

Windows specific files (Like win51)

i386

$oem$

|---$1

WPI1

WPI2

WPI.ico

Autorun.inf

Install

Place WPI.cmd #1 in the $oem$\$1 folder and call it through winnt.sif. Like so:

[GuiRunOnce]

"%systemdrive%\wpi.cmd"

Place WPI.cmd #2 in the WPI2 folder and autorun is already configured to call it.

If you get any errors tell me and I will help you sort them out.

Edited by kelsenellenelvian
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
  • Recently Browsing   0 members

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