2

Is there a way to install .NET on a USB drive, pop it into a machine and get .NET working without actually installing it on a client's local machine?

I am also trying to figure out how to do the same for SQL Server. Is it even possible?

dance2die
  • 2,011
  • 7
  • 32
  • 41

4 Answers4

10

I think the answer will be No.

Anything else would be a major hack, .NET install updates all sorts of things in the system, and its loader assumes those things are in place (e.g. GAC exists, location of compilers, IIS/IE/... integration).

Richard
  • 5,324
  • 1
  • 23
  • 20
  • I don't think there is no reasonable way without actual hack, which I don't consider to be worth it for my current situation. Thank you Richard. – dance2die May 05 '09 at 14:56
2

I would also add that when you look at SQL Server, you're looking at a service which needs to be installed and executed, so no go for that as well without major hacks.

John Rudy
  • 243
  • 3
  • 8
2

No, its not possible for reasons stated by others here.

Your best bet is to require .NET to be installed, and then run your .NET application from the thumbdrive.

If you need SQLServer but dont wanna install that beast you can use SQL Compact (included in .NET) and store the database in the same folder on the thumbdrive.

Nate
  • 2,151
  • 6
  • 26
  • 41
1

I sense that the need to "install" .NET & SQL Server to a USB drive has something to do with the overhead of installing them to the hd (size, files, etc). Installing these to a USB is impractical, development-wise. Why not build a Virtual PC instead?

MarlonRibunal
  • 283
  • 1
  • 3
  • 8