Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
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 
Ive created the Install() file and I must have missed something, here is my code ...

namespace ScreenSaver1
{
    [RunInstaller(true)]
    class Installer1 : Installer
    {
        const string _screenSaverValue = "SCRNSAVE.EXE";
                
        public Installer1()
        {
            //Default constructor
        }
        
        //override the Install method ...
        public override void Install(System.Collections.IDictionary stateSaver) 
        {
            base.Install(stateSaver);
           
            RegistryKey theRootKey = Registry.CurrentUser;
            RegistryKey theControlPanel = theRootKey.OpenSubKey("Control Panel");
            RegistryKey theDeskTopKey = theControlPanel.OpenSubKey("Desktop");

            if (theDeskTopKey.GetValue(_screenSaverValue) == null)
            {
                //Add some values
                string valName = _screenSaverValue;
                object testValue = Directory.GetParent(Environment.SpecialFolder.System.ToString()) + "ScreenSaver1.scr";
                RegistryValueKind valKind = RegistryValueKind.String;

                theRootKey.SetValue(valName, testValue, valKind);
            }
            
        }

    }
}


Everything else works fine, just not setting the registry value ...
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 
GeneralRe: openFileDialog problem Pin
Dave Kreskowiak27-Dec-06 5:09
mveDave Kreskowiak27-Dec-06 5:09 
GeneralRe: openFileDialog problem Pin
gnadeem27-Dec-06 11:20
gnadeem27-Dec-06 11:20 
GeneralRe: openFileDialog problem Pin
ednrgc28-Dec-06 6:31
ednrgc28-Dec-06 6:31 
QuestionHow to make use of an API Pin
rockyl27-Dec-06 2:33
rockyl27-Dec-06 2:33 
AnswerRe: How to make use of an API Pin
Niiiissssshhhhhuuuuu27-Dec-06 2:39
Niiiissssshhhhhuuuuu27-Dec-06 2:39 
GeneralRe: How to make use of an API Pin
rockyl27-Dec-06 4:23
rockyl27-Dec-06 4:23 
AnswerRe: How to make use of an API Pin
User 665827-Dec-06 2:40
User 665827-Dec-06 2:40 
GeneralRe: How to make use of an API Pin
rockyl27-Dec-06 4:22
rockyl27-Dec-06 4:22 
GeneralRe: How to make use of an API Pin
Eric Dahlvang27-Dec-06 5:35
Eric Dahlvang27-Dec-06 5:35 

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.