Nazgul
Content Type
Profiles
Forums
Events
Posts posted by Nazgul
-
-
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.
0 -
It is, try the following:
WshShell.regRead("HKLM\Software\Test\Test")=="b"
This checks if the value of Test at location HKLM\Software\Test is equal to b.
HKLM = HKEY_LOCAL_MACHINE
HKCU = HKEY_CURRENT_USER
0 -
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)
0 -
If all checkboxes aren't rendered because all conditions fail and I press 'Begin install' I get the following error:
JavaScript Error Report
Message: Object required
URL: file://C:\WPI\WPI.hta
File: generate.js
Line: 1950 -
I just tried version 3.3.3 and it fixed my problems.
Thanks hasi001.
0 -
Kelsenellenelvian, take a look at HTML Colors for a list of colors.
0 -
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?
0 -
That post is indeed exactly like my problem.
I also get that JavaScript Error Report when exiting after debugging. (Forgot to mention that in the first post)
0 -
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?
0 -
Would it be possible to let the .hta autodetect the %cdrom% setting by using something like:
var WshShell = new ActiveXObject("WScript.Shell");
WshShell.RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SourcePath").substring(0,2);This way it would be set to the sourcedrive that was used to install Windows with.
0
Install order when installing by category
in Windows Post-Install Wizard (WPI)
Posted
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
into
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.