471,086 Members | 1,164 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

msi in a Windows Service

Fei
Hi,

I got a strange problem. I use Macrovision installshield x express
edition to build a simple MSI file. I can install this mis silently, i.e
using /qn. It has no problem to run either in the command prompt or in a
windows application. However when I put the same code to run this msi in a
small windows service, it does NOTHING !!! It only starts the thread, but it
does not do installation.Why?

Here are codes:

Dim psi As New ProcessStartInfo
psi.WorkingDirectory = MY_WORKING_FOLDER
psi.FileName = MY_FILE_NAME
psi.Arguments = "/qn"
Dim p As New Process
p.StartInfo = psi
p.Start()

Thanks in advance.

fei
Jun 15 '06 #1
4 1195
"Fei" <fw***@NOSPAMcsystemssoftware.com> wrote in message
news:eq**************@TK2MSFTNGP03.phx.gbl...
Hi,

I got a strange problem. I use Macrovision installshield x express
edition to build a simple MSI file. I can install this mis silently, i.e
using /qn. It has no problem to run either in the command prompt or in a
windows application. However when I put the same code to run this msi in a
small windows service, it does NOTHING !!! It only starts the thread, but
it does not do installation.Why?

Here are codes:

Dim psi As New ProcessStartInfo
psi.WorkingDirectory = MY_WORKING_FOLDER
psi.FileName = MY_FILE_NAME
psi.Arguments = "/qn"
Dim p As New Process
p.StartInfo = psi
p.Start()


what's in the installer log?

to add logging - add following command-line parameter:

psi.Arguments = "/qn /l*v logFile.txt"

logFile.txt - will contain verbose log of the msiexec, where you can see
what is happening

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Jun 15 '06 #2
My guess would be a security issue, your service is running in a completely
different security context.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"Fei" <fw***@NOSPAMcsystemssoftware.com> wrote in message
news:eq**************@TK2MSFTNGP03.phx.gbl...
Hi,

I got a strange problem. I use Macrovision installshield x express
edition to build a simple MSI file. I can install this mis silently, i.e
using /qn. It has no problem to run either in the command prompt or in a
windows application. However when I put the same code to run this msi in a
small windows service, it does NOTHING !!! It only starts the thread, but
it does not do installation.Why?

Here are codes:

Dim psi As New ProcessStartInfo
psi.WorkingDirectory = MY_WORKING_FOLDER
psi.FileName = MY_FILE_NAME
psi.Arguments = "/qn"
Dim p As New Process
p.StartInfo = psi
p.Start()

Thanks in advance.

fei

Jun 15 '06 #3
Fei
I turn on the logging of Installer in OS. It doesn't generate any log files.
So my guess is that somehow install is never started although the process is
started.
"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:OO**************@TK2MSFTNGP04.phx.gbl...
"Fei" <fw***@NOSPAMcsystemssoftware.com> wrote in message
news:eq**************@TK2MSFTNGP03.phx.gbl...
Hi,

I got a strange problem. I use Macrovision installshield x express
edition to build a simple MSI file. I can install this mis silently, i.e
using /qn. It has no problem to run either in the command prompt or in a
windows application. However when I put the same code to run this msi in
a small windows service, it does NOTHING !!! It only starts the thread,
but it does not do installation.Why?

Here are codes:

Dim psi As New ProcessStartInfo
psi.WorkingDirectory = MY_WORKING_FOLDER
psi.FileName = MY_FILE_NAME
psi.Arguments = "/qn"
Dim p As New Process
p.StartInfo = psi
p.Start()


what's in the installer log?

to add logging - add following command-line parameter:

psi.Arguments = "/qn /l*v logFile.txt"

logFile.txt - will contain verbose log of the msiexec, where you can see
what is happening

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Jun 16 '06 #4
Fei
This is my guess too. But I have no documents/links for this help. Please
let me know if you have any clues/documents/links about this security issue.

Thanks!

Fei

"Greg Young" <dr*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
My guess would be a security issue, your service is running in a
completely different security context.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"Fei" <fw***@NOSPAMcsystemssoftware.com> wrote in message
news:eq**************@TK2MSFTNGP03.phx.gbl...
Hi,

I got a strange problem. I use Macrovision installshield x express
edition to build a simple MSI file. I can install this mis silently, i.e
using /qn. It has no problem to run either in the command prompt or in a
windows application. However when I put the same code to run this msi in
a small windows service, it does NOTHING !!! It only starts the thread,
but it does not do installation.Why?

Here are codes:

Dim psi As New ProcessStartInfo
psi.WorkingDirectory = MY_WORKING_FOLDER
psi.FileName = MY_FILE_NAME
psi.Arguments = "/qn"
Dim p As New Process
p.StartInfo = psi
p.Start()

Thanks in advance.

fei


Jun 16 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

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.