Jump to content

Recommended Posts

Posted (edited)

hi, for test reasons i manage a CD like:

CD: |

|-i386 (folder with only drivers.cab file)

|-_soft_ (folder with only notepad.exe)

|-(all WPI folders: Audio,Common,Example.. etc.)

|-WPI.hta

|-win51

i change "Defaultblank" to "notepad.exe" and

Command 1 = %cdrom%\_soft_\notepad.exe

and when i start wpi.hta from cd and click on "Begin install" there is X on notepad and notepad.exe wont start?

could someone can explain me where or how to configure that?

and does JS and/or wpi scripts check for big and small letters, %CDROM% <> %cdrom% ??

I want (future) to put WPI folder in _soft_ folder and install programs from _soft_\@programs folder (%cdrom%\_soft_\@programs\acrobarreader\acr.exe).

Can I do that?

Edited by thern

Posted

From the thread:

WPI checks for WPI.hta, WIN51 or Driver.cab and uses any one of these for the dir identifier.

You can open generate.js and find "function FindCDRom()"

There should be a bunch of "if (FileExists[...])" commands. Rearrange them, or list your own file accordingly. Be sure to follow the same pattern that you see in the file.

Posted

to make life a tab easyer

keep all of the WPI files in a folder called WPI

<CD/DVD ROOT>

- I386

- so on

- so on

- so on

- so on

- wpi

- wpi.hta

- auido

- config

- so on

and its %cdrom%\\path\\file.exe

:)

Posted

ok, i've got it to work

i must do all things again, unpack archive with WPI and repleace config files, but sill sometimes have strange error in generate.js after clicking on "Begin install" like FindCDRom() in line 25 or FileExits() blablabla, when i dont even touch config files, option or else...

thanks guys!

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