Click here to Skip to main content
15,914,245 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why is this good practice Pin
Talal Sultan21-Jun-06 0:30
Talal Sultan21-Jun-06 0:30 
GeneralRe: Why is this good practice Pin
S020035621-Jun-06 0:52
S020035621-Jun-06 0:52 
GeneralRe: Why is this good practice Pin
Talal Sultan21-Jun-06 1:02
Talal Sultan21-Jun-06 1:02 
AnswerRe: Why is this good practice Pin
Divyang Mithaiwala21-Jun-06 1:14
Divyang Mithaiwala21-Jun-06 1:14 
AnswerRe: Why is this good practice Pin
BoneSoft21-Jun-06 4:08
BoneSoft21-Jun-06 4:08 
QuestionMobile application Pin
acodman21-Jun-06 0:15
acodman21-Jun-06 0:15 
AnswerRe: Mobile application Pin
Not Active21-Jun-06 2:52
mentorNot Active21-Jun-06 2:52 
QuestionRunning MSI file from inside a windows forms application Pin
Talal Sultan21-Jun-06 0:07
Talal Sultan21-Jun-06 0:07 
hi
I'm trying to execute an MSI installation file from inside a windows application. Here's what I'm doing:

C#
Process p = null;
p = new Process();
p.StartInfo.WorkingDirectory = path;
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;	
p.StartInfo.FileName = "Microsoft_WSE_20_SP3_Runtime.msi";
p.Start();
p.WaitForExit();


When I run it, I get a message saying the installation package could not be opened. When I run it from the command prompt, it works.

I use the same code to run osql commands and those work fine.

Any ideas what I'm doing wrong? Confused | :confused:

thanks,
Talal



"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
AnswerRe: Running MSI file from inside a windows forms application Pin
Ed.Poore21-Jun-06 1:43
Ed.Poore21-Jun-06 1:43 
GeneralRe: Running MSI file from inside a windows forms application Pin
Talal Sultan21-Jun-06 2:54
Talal Sultan21-Jun-06 2:54 
GeneralRe: Running MSI file from inside a windows forms application Pin
Ed.Poore21-Jun-06 6:04
Ed.Poore21-Jun-06 6:04 
Questioncustom control Pin
GDavy21-Jun-06 0:05
GDavy21-Jun-06 0:05 
AnswerRe: custom control Pin
Talal Sultan21-Jun-06 0:18
Talal Sultan21-Jun-06 0:18 
Questionmaking xml comments mandatory Pin
KrunalC20-Jun-06 23:51
KrunalC20-Jun-06 23:51 
AnswerRe: making xml comments mandatory Pin
Kevin McFarlane21-Jun-06 0:32
Kevin McFarlane21-Jun-06 0:32 
AnswerRe: making xml comments mandatory Pin
Not Active21-Jun-06 2:30
mentorNot Active21-Jun-06 2:30 
AnswerRe: making xml comments mandatory [modified] Pin
BoneSoft21-Jun-06 4:12
BoneSoft21-Jun-06 4:12 
AnswerRe: making xml comments mandatory Pin
Dustin Metzgar21-Jun-06 4:43
Dustin Metzgar21-Jun-06 4:43 
GeneralRe: making xml comments mandatory Pin
KrunalC21-Jun-06 23:20
KrunalC21-Jun-06 23:20 
QuestionCrsytal Report in C# Pin
Alamzeb khan20-Jun-06 22:45
Alamzeb khan20-Jun-06 22:45 
AnswerRe: Crsytal Report in C# Pin
V.21-Jun-06 0:11
professionalV.21-Jun-06 0:11 
QuestionGenerics - Cast value to generic type Pin
Vince Smith20-Jun-06 22:44
Vince Smith20-Jun-06 22:44 
QuestionCrsytal Repot in C# Pin
Alamzeb khan20-Jun-06 22:42
Alamzeb khan20-Jun-06 22:42 
AnswerRe: Crsytal Repot in C# Pin
Vasudevan Deepak Kumar20-Jun-06 23:45
Vasudevan Deepak Kumar20-Jun-06 23:45 
QuestionWTS Pin
ChandruIT20-Jun-06 22:05
ChandruIT20-Jun-06 22:05 

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.