.NET Deployment: Minimum Customer Effort

From: Al (GlenMatlock999_at_hotmail.com)
Date: 09/11/03


Date: 11 Sep 2003 09:01:01 -0700


I'm new to .NET, performing a trial port of J++ applet based code to
J# Browser Controls. I wonder if anyone can offer this newbie some
advice...

The application accesses a native DLL to interface with proprietary
hardware via J/Direct.

It's supplied to customers with two installations - one for the
server, and one for the client machine. The server has the J# Browser
Control, the client(s) have a native DLL, SYS and INF files for
registering and driving the hardware. The server and client may be the
same machine for 'stand-alone' use.

OK. For hardware communication to be succeed, I understand the
assembly needs to be granted FullTrust. I have done this during
development by setting up an appropriate Code Group using the .NET
Configuration tool and giving the required permission level based on
the public key of the assembly. Lovely.

***What I want to do is to deploy my application in such a way as to
require the absolute minimum amount of effort on behalf of my
customers when installing.***

With J++ all the user had to do was to click 'Yes' on a trust-based
security dialog.

With .NET there are a number of possibilities, all of which seem so
far require a fair amount of computer literacy: e.g. manual
configuration, installation of .msi file using MMC, etc. This may not
be a problem for system administrators but could represent difficulty
for a 'regular' user.

I've started to look at writing a batch file that uses Caspol.exe to
perform all the required security configuration on behalf of the
customer. Can anyone tell me if I am going the right way?

e.g. would it be possible to include a batch file as part of the
client installation that would automatically give my code the
appropriate permissions? Though presumably someone sometime has to
agree to the permissions demanded by our code?

All comments and suggestions would be very welcome...

Cheers,
Al.



Relevant Pages

  • Re: System.Diagnostics.Process not working !! please help
    ... You must be having permissions problem. ... batch file is and goto the "security" tab, add the ASPNET user in it and ... >> missing using statements. ... >>> catch (Exception err) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cannot Execute Batch File
    ... I have given full permissions for the shortcut. ... The error says that I do not have permissions to execute this file. ... We have newly installed a Terminal Server. ... with a Batch file, that is shared on a different Server. ...
    (microsoft.public.windows.terminal_services)
  • Re: Install of Management Studio fails with SMS
    ... If you have not already tried you could ask in the SMS newsgroups. ... >> should work through sms...if it is a permissions issue, ... >> Also I have tried putting this command in a batch file which SMS doesn't ... >>> John ...
    (microsoft.public.sqlserver.setup)
  • Re: Login Script Trouble
    ... I figured this one out with regards to why the batch file didn't ... inherit the permissions from the scripts folder. ...
    (microsoft.public.windows.server.general)
  • Re: How do you acces ASP.NET WAT on a Web server that doesnt have
    ... thanks for the batch file. ... So, since my virtual directory for WAT is named "webadmin", I changed ... System.Configuration.ConfigurationErrorsException: A configuration file cannot be created for the ... Previously I was using IIS 6.0 to configure a virtual directory for the WAT ...
    (microsoft.public.dotnet.framework.aspnet)