473,473 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trying to launch Trillian through C# program

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!

Jul 12 '06 #1
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!
Jul 12 '06 #2
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!
Jul 12 '06 #3
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!
Jul 12 '06 #4
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!
Jul 13 '06 #5
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!
Jul 28 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
0
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...
1
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...
1
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...
2
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...
1
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...
8
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. ...
0
by: lokey03081 | last post by:
trillian patch 3.1.5.1 http://cracks.00bp.com F R E E
1
BezerkRogue
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...
1
isladogs
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...
0
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...
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.