Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    9

    cd security/only run cd in code ?

    this code run build&publish target in Burn data cd/dvd. But everybody see in project then file.

    drive_type = Drive.GetType(_SourceDrive);

    if (drive_type ~= DRIVE_CDROM) then
    Dialog.Message("Notice", "This Application Must be run from the original CD ROM", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1)
    Application.Exit()
    end

    but build&publish target in Web/Email executable in stops working even if the CD is in the driver.

    How do build&publish target in Web/Email executable in write that code? or any only run in cd code... Help me.

  2. #2
    Join Date
    Aug 2008
    Posts
    29
    Code:
    DrivesTB = Drive.Enumerate();
    for nIndex, DrvLetter in DrivesTB do
    if Drive.GetType(DrvLetter) == 5 then
    result = File.Find(DrvLetter, "autorun.exe", false, false, nil, nil);
    if not (result) then
    Dialog.Message("Notice", "This Application Must be run from the original CD ROM", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1)
    Application.Exit()
    end
    error = Application.GetLastError();
    if (error ~= 0) then Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); 
    Application.Exit()
    end
    end
    end

Similar Threads

  1. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM
  2. Run VBS script and get exit code
    By Clay in forum Setup Factory 7.0
    Replies: 1
    Last Post: 06-08-2007, 11:58 AM
  3. Run Command Line code
    By rctshine in forum AutoPlay Media Studio 6.0
    Replies: 19
    Last Post: 06-29-2006, 01:25 PM
  4. How get Exit Code from program run in setup?
    By Telmo in forum Setup Factory 6.0
    Replies: 1
    Last Post: 12-05-2003, 01:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts