473,320 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Is it possible to run setup file from C# code?

Hi,
I have this method in my c# vs.net 2003 code:
================= Start Code =================
private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app paths\\OUTLOOK.EXE");

string path = (string)key.GetValue("Path");
if( path != null)
System.Diagnostics.Process.Start("OUTLOOK.EXE");
else
MessageBox.Show("There is no Outlook in this computer!","System
Error",MessageBoxButtons.OK,MessageBoxIcon.Exclama tion);
}
================= End Code =================

I have com add-in to outlook 2003, code in c#.
I want to check if this add-in was installed in this computer.
if no --I want to install the setup.exe of my com add-in from this method.
Is it possible to run setup file from C# code?
Thanking you in anticipation,
Yael.
May 28 '07 #1
5 2517
private void isOutlook(){
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app paths\\OUTLOOK.EXE");
string path = (string)key.GetValue("Path"); if( path != null)// if have
outlook do the installing com add-in
//if this com add-in not yet installed

System.Diagnostics.Process.Start("C:\\MatarotToolb ar\\MatarotToolbarSetup\\Debug\\Setup.Exe");
}

1) How to check before calling the installer if this add-in was installed in
this computer?

2) How to check the path of MatarotToolbarSetup\\Debug\\Setup.Exe???

"Yael" wrote:
Hi,
I have this method in my c# vs.net 2003 code:
================= Start Code =================
private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app paths\\OUTLOOK.EXE");

string path = (string)key.GetValue("Path");
if( path != null)
System.Diagnostics.Process.Start("OUTLOOK.EXE");
else
MessageBox.Show("There is no Outlook in this computer!","System
Error",MessageBoxButtons.OK,MessageBoxIcon.Exclama tion);
}
================= End Code =================

I have com add-in to outlook 2003, code in c#.
I want to check if this add-in was installed in this computer.
if no --I want to install the setup.exe of my com add-in from this method.
Is it possible to run setup file from C# code?
Thanking you in anticipation,
Yael.
May 28 '07 #2

"Yael" <Ya**@discussions.microsoft.comwrote in message
news:FA**********************************@microsof t.com...
private void isOutlook(){
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app
paths\\OUTLOOK.EXE");
string path = (string)key.GetValue("Path"); if( path != null)// if have
outlook do the installing com add-in
//if this com add-in not yet installed

System.Diagnostics.Process.Start("C:\\MatarotToolb ar\\MatarotToolbarSetup\\Debug\\Setup.Exe");
}

1) How to check before calling the installer if this add-in was installed
in
this computer?
If it is a COM add-in, then there will certainly be entries in
HKEY_CLASSES_ROOT\Clsid that are specific to that addin.
>
2) How to check the path of MatarotToolbarSetup\\Debug\\Setup.Exe???

"Yael" wrote:
>Hi,
I have this method in my c# vs.net 2003 code:
================= Start Code =================
private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey( "Software\\microsoft\\windows\\currentversion\ \app
paths\\OUTLOOK.EXE");

string path = (string)key.GetValue("Path");
if( path != null)
System.Diagnostics.Process.Start("OUTLOOK.EXE");
else
MessageBox.Show("There is no Outlook in this computer!","System
Error",MessageBoxButtons.OK,MessageBoxIcon.Exclam ation);
}
================= End Code =================

I have com add-in to outlook 2003, code in c#.
I want to check if this add-in was installed in this computer.
if no --I want to install the setup.exe of my com add-in from this
method.
Is it possible to run setup file from C# code?
Thanking you in anticipation,
Yael.

May 29 '07 #3
before running the setup?
Could you set me how to code it please...I'm no't fully understand
Thank's

"Ben Voigt" wrote:
>
"Yael" <Ya**@discussions.microsoft.comwrote in message
news:FA**********************************@microsof t.com...
private void isOutlook(){
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app
paths\\OUTLOOK.EXE");
string path = (string)key.GetValue("Path"); if( path != null)// if have
outlook do the installing com add-in
//if this com add-in not yet installed

System.Diagnostics.Process.Start("C:\\MatarotToolb ar\\MatarotToolbarSetup\\Debug\\Setup.Exe");
}

1) How to check before calling the installer if this add-in was installed
in
this computer?

If it is a COM add-in, then there will certainly be entries in
HKEY_CLASSES_ROOT\Clsid that are specific to that addin.

2) How to check the path of MatarotToolbarSetup\\Debug\\Setup.Exe???

"Yael" wrote:
Hi,
I have this method in my c# vs.net 2003 code:
================= Start Code =================
private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app
paths\\OUTLOOK.EXE");

string path = (string)key.GetValue("Path");
if( path != null)
System.Diagnostics.Process.Start("OUTLOOK.EXE");
else
MessageBox.Show("There is no Outlook in this computer!","System
Error",MessageBoxButtons.OK,MessageBoxIcon.Exclama tion);
}
================= End Code =================

I have com add-in to outlook 2003, code in c#.
I want to check if this add-in was installed in this computer.
if no --I want to install the setup.exe of my com add-in from this
method.
Is it possible to run setup file from C# code?
Thanking you in anticipation,
Yael.


May 29 '07 #4

"Yael" <Ya**@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
before running the setup?
Could you set me how to code it please...I'm no't fully understand
Thank's
First use the OLE typelib viewer to find out what the UUID of the library
is. Then check whether that key is present under
HKEY_CLASSES_ROOT\TypeLib\{UUID-goes-here} to see if it is installed on the
target system.
>
"Ben Voigt" wrote:
>>
"Yael" <Ya**@discussions.microsoft.comwrote in message
news:FA**********************************@microso ft.com...
private void isOutlook(){
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app
paths\\OUTLOOK.EXE");
string path = (string)key.GetValue("Path"); if( path != null)// if have
outlook do the installing com add-in
//if this com add-in not yet installed

System.Diagnostics.Process.Start("C:\\MatarotToolb ar\\MatarotToolbarSetup\\Debug\\Setup.Exe");
}

1) How to check before calling the installer if this add-in was
installed
in
this computer?

If it is a COM add-in, then there will certainly be entries in
HKEY_CLASSES_ROOT\Clsid that are specific to that addin.
>
2) How to check the path of MatarotToolbarSetup\\Debug\\Setup.Exe???

"Yael" wrote:

Hi,
I have this method in my c# vs.net 2003 code:
================= Start Code =================
private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey( "Software\\microsoft\\windows\\currentversion\ \app
paths\\OUTLOOK.EXE");

string path = (string)key.GetValue("Path");
if( path != null)
System.Diagnostics.Process.Start("OUTLOOK.EXE");
else
MessageBox.Show("There is no Outlook in this computer!","System
Error",MessageBoxButtons.OK,MessageBoxIcon.Exclam ation);
}
================= End Code =================

I have com add-in to outlook 2003, code in c#.
I want to check if this add-in was installed in this computer.
if no --I want to install the setup.exe of my com add-in from this
method.
Is it possible to run setup file from C# code?
Thanking you in anticipation,
Yael.



May 30 '07 #5
Thank's,
Could you set me example please?

"Ben Voigt [C++ MVP]" wrote:
>
"Yael" <Ya**@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
before running the setup?
Could you set me how to code it please...I'm no't fully understand
Thank's

First use the OLE typelib viewer to find out what the UUID of the library
is. Then check whether that key is present under
HKEY_CLASSES_ROOT\TypeLib\{UUID-goes-here} to see if it is installed on the
target system.

"Ben Voigt" wrote:
>
"Yael" <Ya**@discussions.microsoft.comwrote in message
news:FA**********************************@microsof t.com...
private void isOutlook(){
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app
paths\\OUTLOOK.EXE");
string path = (string)key.GetValue("Path"); if( path != null)// if have
outlook do the installing com add-in
//if this com add-in not yet installed

System.Diagnostics.Process.Start("C:\\MatarotToolb ar\\MatarotToolbarSetup\\Debug\\Setup.Exe");
}

1) How to check before calling the installer if this add-in was
installed
in
this computer?

If it is a COM add-in, then there will certainly be entries in
HKEY_CLASSES_ROOT\Clsid that are specific to that addin.


2) How to check the path of MatarotToolbarSetup\\Debug\\Setup.Exe???

"Yael" wrote:

Hi,
I have this method in my c# vs.net 2003 code:
================= Start Code =================
private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\\microsoft\\windows\\currentversion\\app
paths\\OUTLOOK.EXE");

string path = (string)key.GetValue("Path");
if( path != null)
System.Diagnostics.Process.Start("OUTLOOK.EXE");
else
MessageBox.Show("There is no Outlook in this computer!","System
Error",MessageBoxButtons.OK,MessageBoxIcon.Exclama tion);
}
================= End Code =================

I have com add-in to outlook 2003, code in c#.
I want to check if this add-in was installed in this computer.
if no --I want to install the setup.exe of my com add-in from this
method.
Is it possible to run setup file from C# code?
Thanking you in anticipation,
Yael.


May 30 '07 #6

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

Similar topics

2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
6
by: Richard Bell | last post by:
I'm having difficulty with memory loss on an application that automates IE6 under XP (pro, fully up to date) using VB.Net. Every 30 minutes (triggered by the XP scheduler) the application visits a...
13
by: Alison Givens | last post by:
....... that nobody knows the answer. I can't imagine that I am the only one that uses parameters in CR. So, my question again: I have the following problem. (VB.NET 2003 with CR) I have a...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
1
by: Gene | last post by:
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs...
0
bartonc
by: bartonc | last post by:
You can find the original author of the script by ggling " Py2Exe version 6.3 setup" The cool thing about this is that it calls py2exe, just in case you're uncomfortable with the command line. I had...
3
by: =?Utf-8?B?WmlhbmdpIEpvbmVz?= | last post by:
Hi, I m using VS .NET 2003 to create a website. Using the setup package I create a setup as well. But this setup has files with actual code in it & not pre-compiled DLLs. Please let me know...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
1
by: =?Utf-8?B?VWxm?= | last post by:
Hi, We have created a setup project for an app in MS VS .Net with Windows Installer Bootstrapper selected. When installing the app, we wonder if it is possible to start the installation using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.