how to make exe file as readonly in CF

  • Thread starter Thread starter sudheer
  • Start date Start date
S

sudheer

when cab file is installed in .net then it produces a Exe file.now i
want to make that exe file as readonly .end user has no permissions to
delete that file .how to do it .thank for if u reply to this.
 
Make the source read only before generating the CAB file.
Huh? How should that prevent anyone from using the PDA's explorer or a
PC to reset the read only flag? Or is there anything special about your
solution? How would one deinstall the app then? Hardreboot seems to be
the only way then. Am I right?

Greetings

Markus
 
There's nothing "special" about what I proposed. If he wants it to be
read-only as a speed bump when it's placed on the target, then make the
source read only. There is no way to prevent a user from being able to
delete the file without either putting it in ROM (not an option on a Pocket
PC unless you're the OEM) or writing a file system filter and putting the
file in a filtered folder (lots of work and can't be done in C#).

-Chris
 
There's nothing "special" about what I proposed. If he wants it to be
read-only as a speed bump when it's placed on the target, then make the
source read only. There is no way to prevent a user from being able to
delete the file without either putting it in ROM (not an option on a Pocket
PC unless you're the OEM) or writing a file system filter and putting the
file in a filtered folder (lots of work and can't be done in C#).

One thiong to consider though: if the exe isn't yet JITed on the target
the CF runtime might be against this read only thing, at least when
using SD cards and write protecting them this is the case...

Greetings

Markus
 
Back
Top