need to run my c# program on a computer that is not hooked up to the internet.

J

jleslie48

My clients PC has no connection to the internet. I highly doubt that
it has dot net on it. I ran the "build-->publish" routine
and I see I ended up with a setup.exe, and in the bin directory under
release I have myprogram.exe. will I be able to just run this on his
machine? what other software do I need to install?

he is running windows xp, either home or professional. SP3

do I need:
dotNetFx40_Full_x86_x64.exe

or anything else???
 
J

jleslie48

You need to include the .NET end-user redistributable package for
whatever version of .NET your program requires.  Assuming the file you
refer to above was obtained here:http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&Fam...

Then yes, that should be sufficient.

I don't know off the top of my head how, other than to add a custom
install step to your Setup project, to allow the package to be installed
as part of your own program's setup.  But I'm sure there's a way (and
maybe even a better way than the custom install step).

Pete

yup thats where I got it from. thanks.
 
F

Finn Stampe Mikkelsen

"jleslie48" skrev i meddelelsen news:[email protected]...
My clients PC has no connection to the internet. I highly doubt that
it has dot net on it. I ran the "build-->publish" routine
and I see I ended up with a setup.exe, and in the bin directory under
release I have myprogram.exe. will I be able to just run this on his
machine? what other software do I need to install?

he is running windows xp, either home or professional. SP3

do I need:
dotNetFx40_Full_x86_x64.exe

or anything else???

You need to check the prerequisites for your project..

On the same page as your publish button, there is a prerequisite button, where you can set the individual prerequisites of your
project. On the buttom of the dialog that comes up, there is an option to "Download prerequisites from the same location as my
application". Setting this option wil cause the prerequisites to be included in the published setup folder and upon installation the
setup will check if the checked prerequisites are available. If not, it will install them prior to the actual application...

This will also include FW.. Usually VS2008/2010 will by itself mark FW as prerequisites, but it is important that you push the above
mentioned radio button, because otherwise the setup will either try to download it from the vendor (in your case not possible) or
will popup with an error stating you need this or that...

/Finn
 
J

jleslie48

You need to check the prerequisites for your project..

On the same page as your publish button, there is a prerequisite button, where you can set the individual prerequisites of your
project. On the buttom of the dialog that comes up, there is an option to"Download prerequisites from the same location as my
application". Setting this option wil cause the prerequisites to be included in the published setup folder and upon installation the
setup will check if the checked prerequisites are available. If not, it will install them prior to the actual application...

This will also include FW.. Usually VS2008/2010 will by itself mark FW asprerequisites, but it is important that you push the above
mentioned radio button, because otherwise the setup will either try to download it from the vendor (in your case not possible) or
will popup with an error stating you need this or that...

/Finn

I'm using the Visual C# 2010 Express, my "publish wizard" does not
show any prerequisite button.
 
F

Finn Stampe Mikkelsen

"jleslie48" skrev i meddelelsen
I'm using the Visual C# 2010 Express, my "publish wizard" does not
show any prerequisite button.

.NET 4.0 as well.

You need to open the properties for the project. You can do that by right-clicking the project (not the solution) in the solution
explorer. Then select properties in the popup menu. There will be a tab called publish, where you can costumize your click-once
setup... Among other things you can set the prerequisites here..

/Finn
 

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