tags:

views:

160

answers:

7

Might seem like a bizarre request, but is there anyway to run .NET apps on a locked down machine without installing the runtime? If a set of my users is going to working on machines that are totally locked down, no .NET runtime and no way to install it, is there anyway to 'host' the runtime?

I was thinking along the lines of portable usb apps or something?

Anyone have any ideas here?

+2  A: 

No. The runtime must be installed by someone, either by the default windows installation on the box, Windows Update, or an administrator.

Dave Markle
A: 

No. Only chance coding in something that doesn't need a runtime: C++ / Delphi, etc...

tekBlues
A: 

What version / SP of Windows are you using that doesn't come with the runtime?

Otávio Décio
its XP SP2, but the runtime has been removed
LoveMeSomeCode
If they removed it they very likely don't want any .net code running on these boxes.
Otávio Décio
as very frequently happens in the real world, there are more than one 'they' on this job, and the security IT folks 'they' don't allow the framework, and the business implementation 'they' want our app to be used throughout the organization. Obviously we can tell them to shove it, but I figured it'd be worth looking into.
LoveMeSomeCode
+1  A: 

You might consider using Mono. It'll work with a local, private copy.

Mehrdad Afshari
Mehrdad, you mean I can just copy it into a folder and run my application, without running an installer?
tekBlues
Yes. Btw, you can't just double click the executable after that, but you could create a batch file (or anything like that) that runs `mono assembly.exe`.
Mehrdad Afshari
Fabulous, I must give MONO a try, have never used it, thanks
tekBlues
thanks for the tip on mono, I'll have to check that out. unfortunately this app has already been written in c# and uses a lot of winforms stuff that i dont think will translate
LoveMeSomeCode
+1  A: 

There are some commercial tools. For example: http://www.xenocode.com/Products/Postbuild-for-NET/ but I never try it.

brzozow
+3  A: 

See this:

Running .net based application without .net framework

Dana Holt
A: 

If you don't want to install the .NET runtime, don't write a .NET app. It's really that simple. There are other choices that don't require the framework.

Ken White
Yeah, obviously, but that's not what I asked. The app has already been written in .NET and you don't just rewrite a 2000 man hour app before you look for a shim.
LoveMeSomeCode
How do you write a 2000 man hour app, and only then find out you need to run it on machines not permitted to use the Framework?
John Saunders
The app was written and went live on hundreds of machines that DO have the framework. But then the client decided she wanted to deploy it to machines in another building, and they have a strict set of security requirements and thus no framework.
LoveMeSomeCode