Jump to content

Modifying WPI


Recommended Posts

I made a XP-Unattended-DualLayer-DVD but because some friends of mine have just a Single-Layer-DVD-Drive, I want to have an option on my DVD to make a Single-Layer-DVD out of the Dual-Layer-DVD.

I'd like it very much to use WPI for that. That means: The user launches WPI for selecting the programs that will be on the normal DVD.

I think I'll use simple Batch-Scripts for each program to copy the Program-Folders&Files to a Temp-Folder but I want to have a Display on the WPI-Screen where the user can see how much Disc Space is left.

The best would be a starting-Variable that i can give a starting-Value (for Example 3,5 GB for a DVD or 300MB if a User wants to create a CD) and then another Varable that I can give each selected Program to substract from the "DVD-Size-Variable". e.g. Usable Disc-Space is 3,5 GB, Program A is 300MB, Program B is 100MB, Program C is 200MB...then the DVD-Space-Variable goes 3500MB-300MB-100MB-200MB=2900MB,...

The Super-Mega-Killer-Thing would be to have still only one config.js,...

I hope you can understand my poor English...(and my crazy Idea :whistle: ???)

I am very very new to javascript so I have no Idea how to do this on my own... Maybe you can help me and have some tips for me.

Thank you for your help...

EDIT: By the way: Thank You Very much for the great WPI !!! I LOVE IT!

Edited by AlienMacHine
Link to comment
Share on other sites


I made a XP-Unattended-DualLayer-DVD but because some friends of mine have just a Single-Layer-DVD-Drive, I want to have an option on my DVD to make a Single-Layer-DVD out of the Dual-Layer-DVD.

I'd like it very much to use WPI for that. That means: The user launches WPI for selecting the programs that will be on the normal DVD.

I think I'll use simple Batch-Scripts for each program to copy the Program-Folders&Files to a Temp-Folder but I want to have a Display on the WPI-Screen where the user can see how much Disc Space is left.

The best would be a starting-Variable that i can give a starting-Value (for Example 3,5 GB for a DVD or 300MB if a User wants to create a CD) and then another Varable that I can give each selected Program to substract from the "DVD-Size-Variable". e.g. Usable Disc-Space is 3,5 GB, Program A is 300MB, Program B is 100MB, Program C is 200MB...then the DVD-Space-Variable goes 3500MB-300MB-100MB-200MB=2900MB,...

The Super-Mega-Killer-Thing would be to have still only one config.js,...

I hope you can understand my poor English...(and my crazy Idea :whistle: ???)

I am very very new to javascript so I have no Idea how to do this on my own... Maybe you can help me and have some tips for me.

Thank you for your help...

EDIT: By the way: Thank You Very much for the great WPI !!! I LOVE IT!

thats not gonna be possible to have a command sort out what goes on what disk, dual or single,, that gotta be done by user intervention,, your gonna have to do all that, the old fashion way,, wpi is good an all, but it will never be able to sort out what apps can go on a disk and what cant,

Link to comment
Share on other sites

thats not gonna be possible to have a command sort out what goes on what disk, dual or single,, that gotta be done by user intervention,, your gonna have to do all that, the old fashion way,, wpi is good an all, but it will never be able to sort out what apps can go on a disk and what cant,

I think you don't understand me. I don't want wpi to sort out the apps. That will still be done by a user. I want to use WPI for 2 different things.

1. For installing Applications (The Normal WPI-functioning)

2. For choosing some applications (on the normal wpi-screen with checking and unchecking Apps...) that will go to another (SingleLayer)-DVD. an example for a cmd-line:

prog[pn]=['Acronis True Image Home 10.0.0.4871']
uid[pn]=['TIMAGE']
desc[pn]=['Add Acronis True Image Home 10.0.0.4871 to the disc.']
textl[pn]=['Left']
texti[pn]=['0']
ordr[pn]=[420]
cmd1[pn]=['%CDROM%\\Applications\\CreateDisc\\CopyInstallFolderOfAcronisTrueImageToDisc.cmd']
cat[pn]=['System']
pn++

The Problem is that I want to see how much Apps can be checked until the Disc would be full (Like in Nero or another Burning Program). Maybe I add a variable in the config.js to each Program that says:

size[pn]=['100']. Then I want to have a "Available-Size"-Variable where I can subtract the size of each Program until the Disc is full.

At the end I will have 2 config.js. One for installing apps, and one for choosing Programs to create a singlelayerDVD.

I hope you understand what I mean now...

Link to comment
Share on other sites

correct me if im wrong, but it still sounds like your asking how many apps you can put on a dual layered dvd and how many you can put on a single layered dvd,,

then your asking if wpi can sort out how many of your apps can go on each disk,,

so if thats so then no wpi cant do that, thats user intervention, and with apps varying in size, the amount of apps that a disk can hold varies

Link to comment
Share on other sites

I want to use wpi to choose the applications for creating a disc. Just for CHOOSING! WPI should NOT choose it by itself!

I (ME, NOT WPI) want to choose some apps (let's say for today's disc I want to have App1,App2,App3,...,App15) and I would like to have a display where I can see when my availalable Disc-Space is reached (just like in a burning Program). For every App that I will check, WPI should count the size for each app together (therefor the size[pn]-Variable).

For each App that I have chosen, (NOT WPI by itself!!) I will use a cmd-File to copy the Installation-Files to a %Temp%-Directory. If done so, I will use cdrecord.exe to burn the Apps in the Temp-Folder to a disc

I know that this is NOT A STANDARD FEATURE of WPI. But I'd like to modify it to have such a functionality...

...Soon I will have to give it up because nobody understands me... :wacko:

Edited by AlienMacHine
Link to comment
Share on other sites

WPI will never have stats related to burning a cd/dvd. WPI will never have built-in iso burning capability. That is not what WPI is about. Make a huge config list, but don't burn every program to the cd. It will just show an X for error. No big deal. Or copy your config and cut out what is not needed for each custom install and give it a name. Or use multiple Configuration names; that is what I do.

What you do with your cd/dvd is up to you. There is an unlimited number of variations WPI could create. Only you know what you want to do.

Link to comment
Share on other sites

You could also use cond to check that the installer for each program exists on your disc.

This way any programs you remove from your disc will be hidden from the menu automatically!

e.g.

cond[pn]=['!FileExists(\'%wpipath%\\Install\\MyApp.exe\')'];

Edited by kof94
Link to comment
Share on other sites

Yes I already use this for all my Programs!

I think I will make another new config.js specially for choosing between different sets of programs. e.g. Essential Programs, Webdesign, Grafikdesigner, Multimedia-PC,...

So in the end I can count the needed Diskspace so that always the different sets of progs will fit to a normal dvd.

i have built my own autostart-menu with AutoPlay Menu Builder where i put a button called Create-New-DVD where User can decide if he wants a Windows-Install DVD with a set of Programs or just a Program-Install-Disk, or if he wants WinXP, Knoppix and UBCD-Tools, ... ... ... ... (My Win Unattended-DVD is a Multi-Boot DVD with UBCD, UBCD4Win, Knoppix, Erd-Commander, WinXP-Pro Unattended, WinXP Pro Attended and some other stuff.....)

@kof94: Thank you , I think you're the first one who understands me.. :whistle:

Edited by AlienMacHine
Link to comment
Share on other sites

You could also use cond to check that the installer for each program exists on your disc.

This way any programs you remove from your disc will be hidden from the menu automatically!

e.g.

cond[pn]=['!FileExists(\'%wpipath%\\Install\\MyApp.exe\')'];

hmm thats interesting,, i could see where this would come in handy, especially for those that make multi disk installers,

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