2
Reply

writing string to registry at installation time

Suraj Rai

Suraj Rai

Feb 14 2007 12:18 AM
2.4k
Hi,

Again I am asking the same question...

Is it possible to write to Registry

at installation time. I need to write to registry "HKCU\Software\Microsoft\Windows\Current Version\Run " so that when I install

my software it shud display icon in system tray.


string MyApp_ExE_Path = Application.StartupPath + "\\MyApp.exe";

I have to write "MyApp_ExE_Path" string.

I can write to the registry but what I want is that it should get written at installation time coz after picking the

application startup path.

How can I write to the registry taking the

"Application Startup path" at installation time.

While creating SetUp we can write to the Registry on Target Machine.

but how to provide the string dinamically...coz where the user is going to install this software and what will be the

"application start up path" we don'nt know...

Plz suggest sumthing...if any one have nay Idea...



thanx...

Answers (2)