Click here to Skip to main content
16,005,236 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading a used file Pin
Eric Gunnerson (msft)11-Nov-03 13:54
Eric Gunnerson (msft)11-Nov-03 13:54 
GeneralRe: Reading a used file Pin
j-hannemann11-Nov-03 23:58
j-hannemann11-Nov-03 23:58 
GeneralRe: Reading a used file Pin
Eric Gunnerson (msft)12-Nov-03 11:36
Eric Gunnerson (msft)12-Nov-03 11:36 
GeneralRe: Reading a used file Pin
j-hannemann12-Nov-03 21:16
j-hannemann12-Nov-03 21:16 
Generalproblems when copying an wmi object Pin
wfettich11-Nov-03 5:20
wfettich11-Nov-03 5:20 
GeneralNeed no setup... Pin
Amirjalaly11-Nov-03 4:56
Amirjalaly11-Nov-03 4:56 
GeneralRe: Need no setup... Pin
Judah Gabriel Himango11-Nov-03 5:11
sponsorJudah Gabriel Himango11-Nov-03 5:11 
GeneralRe: Need no setup... Pin
Heath Stewart11-Nov-03 7:06
protectorHeath Stewart11-Nov-03 7:06 
Besides the .NET Framework (which MUST be installed), you can use touchless deployment by writing your application correctly, i.e. rely on .config files only (no registry).

The application I architected runs both from local or LAN machines, or from across the Internet or an intranet with no change. The assembly binding uses the current codebase of the application plus any private paths your config files specifies (see the <runtime> section documentation in the .NET Framework SDK).

You also need to worry about code access permissions, though. In .NET 1.0, the default Internet Zone allows no code to run. In .NET 1.1 some basic permissions are granted to code running from the Internet. You can change or add these code policies, though. There is plenty of documentation about code access security in the .NET SDK Documentation. Just look for "code access security". I'm also working on an extensive article or chain of articles but it'll be some time.

It's important to read, though, because you really must understand them before using them. You don't want to open someone's machine to attach by accident, and you want to make your application work with different permissions granted, i.e. some are required and some are optional. Take a look at the System.Security.Permissions namespace classes for more information about this stuff, as well as the documentation for code access security.

If you don't need to run from a remote source, you don't necessarily have to worry about it (although it's still a good idea to check permissions in your app before executing an action that requires them, otherwise a SecurityException is thrown). Just use COPY/XCOPY to copy your apps and dlls to the local machine and make sure they are in the right place. You can leave all the exes and dlls together with no problem. You can use the application configuration file to specify additional paths, similar to what ASP.NET Web Matrix does.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow to customize the printPreviewDialog? Pin
Member 67887511-Nov-03 4:39
Member 67887511-Nov-03 4:39 
AnswerRe: How to customize the printPreviewDialog? Pin
Heath Stewart11-Nov-03 7:00
protectorHeath Stewart11-Nov-03 7:00 
Generalprotect my program Pin
eafares26511-Nov-03 3:56
eafares26511-Nov-03 3:56 
GeneralRe: protect my program Pin
Heath Stewart11-Nov-03 6:57
protectorHeath Stewart11-Nov-03 6:57 
Generalextended procedure for sql server Pin
mhmoud rawas11-Nov-03 1:20
mhmoud rawas11-Nov-03 1:20 
GeneralRe: extended procedure for sql server Pin
Heath Stewart11-Nov-03 3:10
protectorHeath Stewart11-Nov-03 3:10 
GeneralRe: extended procedure for sql server Pin
mhmoud rawas11-Nov-03 18:43
mhmoud rawas11-Nov-03 18:43 
GeneralRe: extended procedure for sql server Pin
Heath Stewart11-Nov-03 18:55
protectorHeath Stewart11-Nov-03 18:55 
GeneralRe: extended procedure for sql server Pin
Heath Stewart11-Nov-03 3:12
protectorHeath Stewart11-Nov-03 3:12 
GeneralRight to left problem Pin
Mohaqeq200211-Nov-03 0:41
sussMohaqeq200211-Nov-03 0:41 
GeneralRe: Right to left problem Pin
Heath Stewart11-Nov-03 3:19
protectorHeath Stewart11-Nov-03 3:19 
QuestionIs MS Access transaction-aware? Pin
CillyMe10-Nov-03 23:53
CillyMe10-Nov-03 23:53 
AnswerRe: Is MS Access transaction-aware? Pin
Hesham Amin11-Nov-03 0:41
Hesham Amin11-Nov-03 0:41 
GeneralRe: Is MS Access transaction-aware? Pin
CillyMe11-Nov-03 2:02
CillyMe11-Nov-03 2:02 
GeneralRe: Is MS Access transaction-aware? Pin
CillyMe11-Nov-03 2:50
CillyMe11-Nov-03 2:50 
GeneralRe: Is MS Access transaction-aware? Pin
Hesham Amin11-Nov-03 7:44
Hesham Amin11-Nov-03 7:44 
GeneralRe: Is MS Access transaction-aware? Pin
CillyMe11-Nov-03 16:47
CillyMe11-Nov-03 16:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.