Hi all,
I am in my infancy with programming, so please forgive stupid
questions...
I am attempting to write a C# program that will launch Trillian (well,
that is just a part of the overall program). I can get the program to
start using
System.Diagnostics.Process.Start(@"C:\Program
Files\Trillian\trillian.exe");
But, if users do not have trillian installed in the default location, I
am stuck.
How can I extract the location of trillian.exe from the registry in the
C# program?
Thanks! 5 1860
Hi jmsxp,
There is probably a better way to do it, but it looks like the install
path for Trillian is located in this registry key (and subkeys):
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\
You can use a tool like REGMON from SysInternals.com to see what keys a
program reads on startup.
Hope that helps,
John jm***@wi.rr.com wrote:
Hi all,
I am in my infancy with programming, so please forgive stupid
questions...
I am attempting to write a C# program that will launch Trillian (well,
that is just a part of the overall program). I can get the program to
start using
System.Diagnostics.Process.Start(@"C:\Program
Files\Trillian\trillian.exe");
But, if users do not have trillian installed in the default location, I
am stuck.
How can I extract the location of trillian.exe from the registry in the
C# program?
Thanks!
Thanks, John. That gets me closer.
now, how do I launch an application based upon this information in my
C# program?
Is there a way for me to tell the program to launch the application
that is pointed to in
"HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\L ocalizedString" value
name?
I know System.Diagnostics.Process.Start() wouldn't work, but is there
another way that is this simple?
John Duval wrote:
Hi jmsxp,
There is probably a better way to do it, but it looks like the install
path for Trillian is located in this registry key (and subkeys):
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\
You can use a tool like REGMON from SysInternals.com to see what keys a
program reads on startup.
Hope that helps,
John
jm***@wi.rr.com wrote:
Hi all,
I am in my infancy with programming, so please forgive stupid
questions...
I am attempting to write a C# program that will launch Trillian (well,
that is just a part of the overall program). I can get the program to
start using
System.Diagnostics.Process.Start(@"C:\Program
Files\Trillian\trillian.exe");
But, if users do not have trillian installed in the default location, I
am stuck.
How can I extract the location of trillian.exe from the registry in the
C# program?
Thanks!
I found this and it should get you there: http://www.codeproject.com/Purgatory/registry_in_c_.asp
Joshua http://www.beyond-earth.net jm***@wi.rr.com wrote:
Thanks, John. That gets me closer.
now, how do I launch an application based upon this information in my
C# program?
Is there a way for me to tell the program to launch the application
that is pointed to in
"HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\L ocalizedString" value
name?
I know System.Diagnostics.Process.Start() wouldn't work, but is there
another way that is this simple?
John Duval wrote:
Hi jmsxp,
There is probably a better way to do it, but it looks like the install
path for Trillian is located in this registry key (and subkeys):
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\
You can use a tool like REGMON from SysInternals.com to see what keys a
program reads on startup.
Hope that helps,
John jm***@wi.rr.com wrote:
Hi all,
>
I am in my infancy with programming, so please forgive stupid
questions...
>
I am attempting to write a C# program that will launch Trillian (well,
that is just a part of the overall program). I can get the program to
start using
System.Diagnostics.Process.Start(@"C:\Program
Files\Trillian\trillian.exe");
>
But, if users do not have trillian installed in the default location, I
am stuck.
>
How can I extract the location of trillian.exe from the registry in the
C# program?
>
Thanks!
Hi jmsxp,
You should just be able to read the registry value for the EXE's path
into a string (look at classes in Microsoft.Win32.Registry), then pass
that string to Process.Start().
Why do you say Process.Start() wouldn't work?
John jm***@wi.rr.com wrote:
Thanks, John. That gets me closer.
now, how do I launch an application based upon this information in my
C# program?
Is there a way for me to tell the program to launch the application
that is pointed to in
"HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\L ocalizedString" value
name?
I know System.Diagnostics.Process.Start() wouldn't work, but is there
another way that is this simple?
John Duval wrote:
Hi jmsxp,
There is probably a better way to do it, but it looks like the install
path for Trillian is located in this registry key (and subkeys):
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\
You can use a tool like REGMON from SysInternals.com to see what keys a
program reads on startup.
Hope that helps,
John jm***@wi.rr.com wrote:
Hi all,
>
I am in my infancy with programming, so please forgive stupid
questions...
>
I am attempting to write a C# program that will launch Trillian (well,
that is just a part of the overall program). I can get the program to
start using
System.Diagnostics.Process.Start(@"C:\Program
Files\Trillian\trillian.exe");
>
But, if users do not have trillian installed in the default location, I
am stuck.
>
How can I extract the location of trillian.exe from the registry in the
C# program?
>
Thanks!
Hi John,
Sorry for the long delay in replying.
I did read the registry value for the EXE and started it with
Process.Start()
Here is what I did:
string appTrillian;
appTrillian = (string)Registry.GetValue
("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows \\CurrentVersion\\Uninstall\\Trillian",
"DisplayIcon", "");
Process.Start(appTrillian);
Thanks to everyone for the help/suggestions. My C# programming
experience is now at 3 weeks!
Jeff
John Duval wrote:
Hi jmsxp,
You should just be able to read the registry value for the EXE's path
into a string (look at classes in Microsoft.Win32.Registry), then pass
that string to Process.Start().
Why do you say Process.Start() wouldn't work?
John
jm***@wi.rr.com wrote:
Thanks, John. That gets me closer.
now, how do I launch an application based upon this information in my
C# program?
Is there a way for me to tell the program to launch the application
that is pointed to in
"HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\L ocalizedString" value
name?
I know System.Diagnostics.Process.Start() wouldn't work, but is there
another way that is this simple?
John Duval wrote:
Hi jmsxp,
There is probably a better way to do it, but it looks like the install
path for Trillian is located in this registry key (and subkeys):
>
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\IM\Trillian\
>
You can use a tool like REGMON from SysInternals.com to see what keys a
program reads on startup.
>
Hope that helps,
John
> jm***@wi.rr.com wrote:
Hi all,
I am in my infancy with programming, so please forgive stupid
questions...
I am attempting to write a C# program that will launch Trillian (well,
that is just a part of the overall program). I can get the program to
start using
System.Diagnostics.Process.Start(@"C:\Program
Files\Trillian\trillian.exe");
But, if users do not have trillian installed in the default location, I
am stuck.
How can I extract the location of trillian.exe from the registry in the
C# program?
Thanks!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: nushin |
last post by:
Try to launch a test program that prints hello world for a minute or
so using, spawnv( ) or spawnl( ). Check to see the process state code
that the program is running. I am using RedHat Linux 7.3...
|
by: Jeff Cooper |
last post by:
Hi folks,
I have a small VB app and I've created a deployment project for it. At the
end of installation I would like the user to get a prompt like "Run your new
program now? yes/no" -- or...
|
by: Michael Howes |
last post by:
I have a c# windows form that talks to a web service on a server that then
can talk to multiple "agents" on different machines using web service calls.
I want to be able to launch an application...
|
by: Juan Romero |
last post by:
Hey guys,
I need to launch an external application, but I need to launch it with some
command line arguments. Now the thing is that I need to launch it as a
process. For example:
Dim p As New...
|
by: Peter Ignarson |
last post by:
Hi there - I am writing a paint program (I am following a learning tutorial,
there is no point to writing a paint program) and I want to extend it so
that I can copy the contents of my drawing and...
| |
by: sylsau |
last post by:
Hello,
I wrote a JAVA program which uses the JAVA API JDOM 1.0 (of this site
www.jdom.org)
I put the archive jdom.jar in the directory /usr/share/java/jdom.jar
and I added this path in the...
|
by: Marcus |
last post by:
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.
...
|
by: lokey03081 |
last post by:
trillian patch 3.1.5.1
http://cracks.00bp.com
F
R
E
E
|
by: BezerkRogue |
last post by:
I have created a VB Script to synchronize software versions and then launch an application on the system it is run against. The script runs and generates no errors but will not launch the second...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |