Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
QuestionC# and Excel 2000 [modified] Pin
73Zeppelin27-Dec-06 8:08
73Zeppelin27-Dec-06 8:08 
AnswerRe: C# and Excel 2000 Pin
Judah Gabriel Himango27-Dec-06 10:11
sponsorJudah Gabriel Himango27-Dec-06 10:11 
GeneralRe: C# and Excel 2000 Pin
73Zeppelin27-Dec-06 10:15
73Zeppelin27-Dec-06 10:15 
GeneralRe: C# and Excel 2000 Pin
73Zeppelin27-Dec-06 10:49
73Zeppelin27-Dec-06 10:49 
QuestionInstalling a C# application programmatically … Pin
Xaverian27-Dec-06 5:47
Xaverian27-Dec-06 5:47 
AnswerRe: Installing a C# application programmatically … Pin
Nader Elshehabi27-Dec-06 6:50
Nader Elshehabi27-Dec-06 6:50 
GeneralRe: Installing a C# application programmatically … Pin
Xaverian27-Dec-06 6:52
Xaverian27-Dec-06 6:52 
GeneralRe: Installing a C# application programmatically … Pin
Nader Elshehabi27-Dec-06 7:11
Nader Elshehabi27-Dec-06 7:11 
Well, to install anything you program got two choices:
1- Make a deployment project -from the new projects window-, there you can specify what to install from your screensaver project, and to check/install DotNet framework.

2- Write the code to copy your files yourself. If you choose this hard way -that's what I thought of when you said programatically-, you need to call the DotNet installer. Something like this:
Process.Start("Setup.exe", "/q");

This way the DotNet framework setup will try to install itself without showing any screens. Of course if you want to copy your exe file to the hard desk you can simply use
File.Copy("MyOldPath.exe", "MyNewPath.exe", true);


Sure the second way is much harder, but some people got reasons to use it. If you just want to install your project and the DotNet framework -if needed-, follow these steps:
1- File => New => Project
2- Other Project types => Setup and Deployment => Setup Project
3- Right click on the setup project's name => Properties
4- Prerequisite button => Check ".Net Framework 2.0" and "Microsoft installer 3.1" from the list and check on "Download prerequisites from the same location as my application" radiobutton.
5- Right click on the setup project's name again => Add => Project output => Choose your screensaver project and click OK.

I hope it was clear this time.

RegardsRose | [Rose]

GeneralRe: Installing a C# application programmatically … Pin
Xaverian27-Dec-06 7:34
Xaverian27-Dec-06 7:34 
GeneralRe: Installing a C# application programmatically … Pin
Nader Elshehabi27-Dec-06 7:59
Nader Elshehabi27-Dec-06 7:59 
GeneralRe: Installing a C# application programmatically … Pin
Xaverian27-Dec-06 8:21
Xaverian27-Dec-06 8:21 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 8:27
Nader Elshehabi27-Dec-06 8:27 
GeneralRe: Installing a C# application programmatically Pin
Xaverian27-Dec-06 8:42
Xaverian27-Dec-06 8:42 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 9:10
Nader Elshehabi27-Dec-06 9:10 
GeneralRe: Installing a C# application programmatically Pin
Xaverian27-Dec-06 9:39
Xaverian27-Dec-06 9:39 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 9:46
Nader Elshehabi27-Dec-06 9:46 
GeneralRe: Installing a C# application programmatically Pin
Xaverian27-Dec-06 11:53
Xaverian27-Dec-06 11:53 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 20:13
Nader Elshehabi27-Dec-06 20:13 
GeneralRe: Installing a C# application programmatically Pin
Xaverian28-Dec-06 3:57
Xaverian28-Dec-06 3:57 
QuestionExporting DataGrid to Excel Pin
pssuresh27-Dec-06 3:50
pssuresh27-Dec-06 3:50 
AnswerRe: Exporting DataGrid to Excel Pin
Nader Elshehabi27-Dec-06 6:47
Nader Elshehabi27-Dec-06 6:47 
AnswerRe: Exporting DataGrid to Excel Pin
ednrgc28-Dec-06 6:30
ednrgc28-Dec-06 6:30 
QuestionopenFileDialog problem Pin
CodeItWell27-Dec-06 3:32
CodeItWell27-Dec-06 3:32 
AnswerRe: openFileDialog problem Pin
Paul Lyons27-Dec-06 3:58
Paul Lyons27-Dec-06 3:58 
AnswerRe: openFileDialog problem Pin
gnadeem27-Dec-06 4:00
gnadeem27-Dec-06 4:00 

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.