Disk space lists: any examples?
-
I have an INF file with the following sections in it: [Version] Signature="$Windows NT$" Provider=Gooroos Software [Install] CopyFiles=CopyFiles [CopyFiles] file1 [DestinationDirs] CopyFiles=11 ; Same as %windir%\system32 [SourceDiskNames] 1="Installation" [SourceDiskFiles] file1=1 I can use this INF to install file1 just fine. However, if I try to create a disk space list for the Install section, I get an error. I.e: SetupAddInstallSectionToDiskSpaceList(diskSpaceList, m_hInf, 0, "Install", 0, 0); fails and GetLastError() returns a code of -536870654. If I change the section name from "Install" to "CopyFiles", then the call succeeds, but when I query the drive list I get back an empty string. I.e: SetupQueryDrivesInDiskSpaceList(diskSpaceList, NULL, 0, &driveListSize) returns a list size of 1 character (i.e. just the terminating null byte). Obviously I'm doing something wrong, so does anyone have an example of using a disk space list which actually works? Thanx.