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

C#

 
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 
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 
Alright. I'm going with you to the end.
There is a registry key in windows that you got to change. The key is "HKEY_CURRENT_USER\Control Panel\Desktop". Inside it there is a value called "SCRNSAVE.EXE". If this value doesn't exist you should create it, if it does you should give it the value "C:\windows\MyFile.scr". To do that while you install your program you have to do a custom action that is done while installing the software.
1- Create the setup project in the same solution as your screen saver solution
2- Add the primary output of your screensaver project to the windows folder you create in the file system panel
3- Right click on the setup project's name => view => custom actions
4- Add a new custom action and choose the primary output of your screensaver project
5- In the screensaver project add a new item => installer class
6- In the Installer1.cs overide the Install() method.
7- In that method alter the above mentioned registry key
8- Don't hardcode the text "C:\windows" as the path. Rather use
Directory.GetParent(Environment.SpecialFolder.System);

Maybe they installed windows in another partition than C.

PS.
I've discovered a much easier way to install your screensaver. Just give your relatives the scr file and tell them to Right click on it => Install. This will directly install it and set it as the default screen saver. Also tell them not to delete the scr file BTW, as it's not copied to the windows directory.

RegardsRose | [Rose]

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 

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.