Jump to content

Recommended Posts

Posted
Posted (edited)

'm customizing a DVD of Windows 7 ...

added a startup command in the DVD for it to execute a program ...

wanted this program to date verificase DVD burning or real serial number of dvd ...

so difficult to copy the same ...

because this is a custom dvd hard work of my company, so the officials could not do anything anywhere.

Edited by Oraculo
Posted

someone has more ideas to help me?

Not an ideal or guaranteed solution but you could compare the media ID of the disk being used against the original disk using a 3rd party app like Imgburn or something similar.

Using Imgburn as an example you could do something like:

#Include <string.au3>

$ORIG_ID = 'Media ID of your disk' ; 'YUDEN000-T03-00'
$Source_Drive = ; Your prefered method of getting the DVD drive letter.
$Imgburn_Path = $Source_Drive & '\Path\To\Imgburn.exe'
$File = 'C:\DVD_Info.txt' ; Temp file

RunWait($Imgburn_Path & ' /MODE READ /SRC ' & $Source_Drive & ' /INFO "' & $File & '" /CLOSEINFO', "", @SW_HIDE)

$hFile = FileOpen($File, 0)

If $hFile = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

$Read = FileRead($hFile)

;Parse the file for the media ID of the disk being used
$DVD_ID = _StringBetween($Read, 'Disc ID: ', @CRLF)
FileClose($hFile)
FileDelete($File)

;Check the media ID against the original
If $DVD_ID[0] <> $ORIG_ID Then
    _Pirate()
EndIf

Func _Pirate()
    MsgBox(262160, "", "This is not an original disk.")
    ; do your stuff
EndFunc

Somebody making a copy could be using the same media as your company, but I would imagine the chances are quite slim.

Posted

you know any other program that can provide me such information?

because ImgBurn is not possible to run in silent mode.

Congratulations on scrip is already a great help ...

if someone has another new please post!

Posted

bolthead

realize some tests on windows and the script is functional however,

ImgBurn not run in winpe environment

you know another program that runs on winpe environment?

Posted

the problem of ImgBurn has been resolved ...

more'm having this error message!

Posted Image

could solve this problem of ImgBurn ...

now there's only run ImgBurn with the hidden window ...

someone has an idea?

Posted

have you replace this line?

$Source_Drive = ; Your prefered method of getting the DVD drive letter.

ok

problem solved ...

someone here know any other program similar to imgburn ....

so I can use it to read media reports dvd

Posted

There are other programs that will read the media ID from a disk, but I don’t know of one that accepts command line arguments.

A couple are:

ADVDInfo (you will need wnaspi32.dll in the same folder for it to work).

DVD Identifier.

They are both GUI only apps that require user input so you will need to use ControlGetText, ControlRead, etc.. to do what you want.

How is using Imgburn failing for you?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...