it seems to me:
that if it's on the HD encrypted, having the exe on the HD is not a problem.

so the EXE unencrypts itself on load?

or, in other words, the structure of the EXE changes upon load right>?

not sure how that would work...

if you are protecting demo exe you have a few options:
tie the encryption to a specific machine using the hard drive serial.

from gary bauer:
VB Code:
  1. Public Declare Function GetVolumeSerialNumber Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As Long, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, ByVal lpMaximumComponentLength As Long, ByVal lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As Long, ByVal nFileSystemNameSize As Long) As Long
  2.  
  3. Public Function SerialNumber(DriveLetter) As Long
  4.     Dim Serial As Long
  5.     Call GetVolumeSerialNumber(Ucase(DriveLetter) & ":\", 0&, 0&, Serial, 0&, 0&, 0&, 0&)
  6.     SerialNumber = Serial
  7. End Function
  8. 'syntax: MsgBox SerialNumber("C")



personally, i simply compile EXEs that expire a month or so down the road for my demos:

VB Code:
  1. 'in Form_Load
  2. Dim expy As Date
  3. expy = "04/15/2006 09:10:07 AM"
  4. If Now > expy Then
  5. MsgBox "Version Expired"
  6. End
  7. End If

i don't think an exe file can be changed around.
i also get an "accsess denied" when trying to delete a running exe file, so that probably is a wash as well.

if you are worried about decompiling, use sourcesafe or something like that. but that begs the question of who you are sending these apps to...

making another file at runtime, a long text file, based on usernames, windows install dates, HD serials, etc and requiring the presence of that file during run gives you mathmatically sound security. you can even verify this unique string (text file)'s date and size. also, that file can be deleted during runtime, causing the app to terminate the next time it is checked in a timer event, at the beggining of a common sub, etc...

let me know if any of this helps or not.

i am interested in the same thing.

$0.02