468,315 Members | 1,408 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

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 1120
"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 this site, you agree to our Privacy Policy and Terms of Use.