Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

OnNextDisk question


2 replies to this topic

Zangow

Zangow
  • Members
  • 2 posts

Posted 02 March 2006 - 16:27

Hello, I've been having trouble trying to override the OnNextDisk function. When I override the function, the whole installation gets hosed. First off, it asks for disk 2 when it doesn't need it yet. And then at the end of the installation, it asks for disk 2 for data3.cab (where it exists) and then when you enter disk 2 and EnterDisk returns a 1 (OK). Immediately after that, it throws a Feature Transfer Error and says the system cannot find data3.cab. All I'm using the OnNextDisk for is modifying the message in the EnterDisk pop up. It otherwise works fine without OnNextDisk, but when it comes to disk 2, it uses the default message. Any help on the proper way of overriding OnNextDisk? Currently my function looks like this:

function OnNextDisk(File, Disk, Path)
// variables declared here
begin
// according to the disk, an enterdisk() is called and the status is returned.
end;

Any help is greatly appreciated, thanks!

- Dan


Zangow

Zangow
  • Members
  • 2 posts

Posted 13 March 2006 - 19:01

If this helps, this is what I have that hoses my installation:

function OnNextDisk(File, Disk, Path)
// variable declarations
begin
NumToStr(svDisk, Disk);
if(!Is(FILE_EXISTS, Path ^ File)) then
VarSave(SRCTARGETDIR);
SRCDIR = Path;
StrSub(svDrive, SRCDISK, 0, 1);
svMessage = "Please insert disk " + svDisk + " into drive " + svDrive + ".";
nResult = EnterDisk(svMessage, File);
VarRestore(SRCTARGETDIR);
else
nResult = OK;
endif;

return nResult;
end;


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 March 2006 - 13:03

I believe you need to add
Path = SRCDIR;
after EnterDisk.