Jump to content

Nazgul

Member
  • Posts

    144
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Netherlands

Posts posted by Nazgul

  1. I don't think there's a supported way at the moment. At least I couldn't find one.

    But I think it coulde be done like this. Untested, use at your own risk.

    Open generate.js and change

    debug("Sort",1);
    if (installByCategory) programs.sort(SortByCat);
    else programs.sort(SortByOrdr);

    into

    debug("Sort",1);
    programs.sort(SortByOrdr);
    if (installByCategory) programs.sort(SortByCat);

    What this does is sort the list by Order and than resort that list by Category (if you chose By Category in the options). But in theory the order within the categories would stay as if it was still sorted by Order, so you can use the order numbers to specify the installation order within a category.

  2. It's not much, but this is the source of the batch file as requested:

    @echo off
    cls
    echo "Please insert CD 2 and press any key to continue.
    pause
    start %cdrom%\wpi\WPI.cmd

    @buzzman2005: You have to choose what to install when you switch discs, but because you have to switch discs, you already have to monitor your install.

    @ankap: I'll take a look at that CD changer. It sounds promising.

  3. I used to use 2 CD's because I didn't have a DVD burner and came up with the following solutions, which could be used for DVD's as well.

    I made a small batch file, in which I ask the user to switch CD's and after pressing a key it starts the WPI wizard on the new CD.

    By entering it into the first WPI and setting it to Force and giving it an Order of 999 it gets executed after installing everything relevant on the first CD.

    And by setting a condition on all installs to check if the install file is present, I can use one big config file for both WPI instances.

    (I have some plans to change the batch file to a nice looking exe, but due to something called real life haven't gotten around to it yet)

  4. After reading your post in the other topic I decided to take a look at the pieces of code you mentioned in boxes.js and generate.js. I got everything to work by modifying the following pieces of code in generate.js.

    if(!eval(replpath(unescape(cond[i])).replace(/\\/g, "\\\\"))) {

    into

    var c = unescape(replpath(cond[i][0]).replace(/\\/g, "\\\\"));
    if(!eval(c)) {

    if(!eval(replpath(unescape(programs[i].cond)).replace(/\\/g, "\\\\"))) {

    into

    var c = unescape(replpath(programs[i].cond + "").replace(/\\/g, "\\\\"));
    if(!eval(c)) {

    The debug window still shows those weird "Írom" things (which are caused by the unescape function by the way) but everything now works as it should.

    I've also made a small workaround for the JavaScript report I was getting on exit. This code has to be changed at line 16 of generate.js.

    WshShell.regDelete(KeyBase);

    into

    try {
       WshShell.regDelete(KeyBase);
    } catch (b) {
       debug("Problem on deleting RegKey '" + KeyBase + "': " + b.message,1);
    }

    Maybe somebody else can test this as well?

    And if its good enough maybe hasi001 would be kind enough to put it in the official version?

  5. I'm having some issues using Conditions.

    I've added 2 programs through Config which have the following conditions:

    1: FileExists("%cdrom%\Installers\Microsoft .Net Framework 1.1 Incl SP1\netfx.msi") && FileExists("%cdrom%\Installers\Microsoft .Net Framework 1.1 Incl SP1\NDP1.1sp1-KB867460-X86.exe")

    2: FileExists("%cdrom%\Installers\Daemon Tools 3.47\Daemon Tools 3.47.msi") && !FileExists("%programfiles%\D-Tools\Daemon.exe")

    Because all 4 files exist, I expect the first condition to succeed and the second to fail. This is confirmed for me when the Framework checkbox is rendered and the Daemon Tools one isn't.

    But when I press install both conditions fail, as can be seen in the debug output below.

    DEBUG:
    Working on Windows XP
    Categories: | System Tools | Office | Tools | PowerToys |
    SortPrograms running
    SortPrograms finished
    Winheight: 768 - Computed 3 columns - Using max. 3 columns with a column-width of 33%
    Dependencies: |
    Rendering of boxes started
     Found CDROM as folder C:\
     Condition failed: FileExists("C:\\Installers\\Daemon Tools 3.47\\Daemon Tools 3.47.msi") && !FileExists("C:\\Program Files\\D-Tools\\Daemon.exe") -- not rendering Daemon Tools 3.47
    Rendering of boxes finished
    Applying checks: default
    Testing condition: FileExists("Írom%\Installers\Microsoft .Net Framework 1.1 Incl SP1\netfx.msi") && FileExists("Írom%\Installers\Microsoft .Net Framework 1.1 Incl SP1\NDP1.1sp1-KB867460-X86.exe")
    Condition failed -- skipping .Net Framework 1.1 Incl. SP1
    Testing condition: FileExists("Írom%\Installers\Daemon Tools 3.47\Daemon Tools 3.47.msi") && !FileExists("%programfiles%\D-Tools\Daemon.exe")
    Condition failed -- skipping Daemon Tools 3.47
    Sort
    Installing...

    I did notice that the debug window shows Írom% where I would be expecting %cdrom%, but I can't figure out what's causing it, or if it's even relevant.

    Could somebody tell me what I'm doing wrong here?

×
×
  • Create New...