Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
AnswerRe: from vb.net to C# Pin
Colin Angus Mackay27-Dec-06 12:08
Colin Angus Mackay27-Dec-06 12:08 
GeneralRe: from vb.net to C# Pin
microuser_200030-Dec-06 4:19
microuser_200030-Dec-06 4:19 
GeneralRe: from vb.net to C# Pin
Colin Angus Mackay30-Dec-06 7:22
Colin Angus Mackay30-Dec-06 7:22 
QuestionEncrypting files & usernames/passwords - What are the normal practises? Pin
Cormac M Redmond27-Dec-06 9:26
Cormac M Redmond27-Dec-06 9:26 
AnswerRe: Encrypting files & usernames/passwords - What are the normal practises? [modified] Pin
Judah Gabriel Himango27-Dec-06 10:09
sponsorJudah Gabriel Himango27-Dec-06 10:09 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Dan Neely27-Dec-06 10:41
Dan Neely27-Dec-06 10:41 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Judah Gabriel Himango27-Dec-06 11:15
sponsorJudah Gabriel Himango27-Dec-06 11:15 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Cormac M Redmond27-Dec-06 11:24
Cormac M Redmond27-Dec-06 11:24 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Judah Gabriel Himango27-Dec-06 16:15
sponsorJudah Gabriel Himango27-Dec-06 16:15 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Cormac M Redmond27-Dec-06 18:30
Cormac M Redmond27-Dec-06 18:30 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Cormac M Redmond27-Dec-06 11:23
Cormac M Redmond27-Dec-06 11:23 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Judah Gabriel Himango27-Dec-06 16:27
sponsorJudah Gabriel Himango27-Dec-06 16:27 
GeneralRe: Encrypting files & usernames/passwords - What are the normal practises? Pin
Cormac M Redmond27-Dec-06 18:28
Cormac M Redmond27-Dec-06 18:28 
QuestionHow to persist collection entries added or removed by the CollectionEditor, when returning from a CollectionEditor????? Pin
Dinesh Jayadevan27-Dec-06 9:21
Dinesh Jayadevan27-Dec-06 9:21 
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 

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.