.NET Application Security

A

Andy Bates

Hi -

I have developed a .NET WinForms application and will be looking to write an
installer shortly. I'm a bit concerned regarding security.

If the application is installed to the local harddisk, then I don't see a
problem as that will inherit full trust; but if the user installs the
application to a network drive then I envisage that the default rights will
prevent the application from running.

What should I do in the installer in order to ensure that the user has the
correct rights in order to run the application from where they install it?
The users will not be technical and will expect the application to just run.

The application will require access to:

1. Microsoft Access database.
2. Files on the installed drive (full access) (either local or network).
3. Third party ActiveX components installed by the application.
4. Possibly access to the registry.

TIA

- Andy
 
G

Guest

Other than telling people not to install it to the network, there's not a lot
you can do... at the end of the day, you should only support network
installations that are designed as such.
 
S

Sami Vaaraniemi

N

Nick Malik

You can always create a custom installer class that will pop up a message if
the user installs the application on a networked drive instead of the local
hard drive.

This article could help: http://www.devx.com/dotnet/Article/20849/0/page/1

This is less of a problem than you think... most of your "less technical"
users accept the default install options. Only the ones who know just
enough to be truly dangerous (less than 5%) will change the install location
but not understand that doing so can mess with the ability of the app to
run.

HTH,
--- Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top