OverviewExamples
tDriveInfo = Drive.GetInformation("C:\\");
Gets the drive information from the 'C:' drive, and stores it in the table "tDriveInfo".
-- Set this value to the expected serial number of the
-- drive that your setup will run from.
Expected_Serial = 123456789;
-- Gets the source drive's current serial number
Current_Serial = Drive.GetInformation(_SourceDrive).SerialNumber;
-- Compares the two serials and, if different, terminates the app.
if (Current_Serial ~= Expected_Serial) then
Dialog.Message("ERROR", "This is an unauthorized copy of the original installer, and will shut down.", MB_OK, MB_ICONSTOP);
Application.Exit();
end
Gets the source drive's serial number and compares it to the 'expected' serial number. If they don't match, the install is terminated.
See also: Related Actions