Re: msi in a Windows Service

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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" <fwang@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:eqSfEYLkGHA.3304@xxxxxxxxxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • Re: msi in a Windows Service
    ... let me know if you have any clues/documents/links about this security issue. ... a small windows service, it does NOTHING!!! ... Dim psi As New ProcessStartInfo ...
    (microsoft.public.dotnet.general)
  • Windows Utility to Monitor Starting of Services?
    ... I am looking for a Windows service that would act as a monitor for ... user name or security context of the user making the change ... Does any monitor service like what I am describing exist? ...
    (comp.security.misc)
  • Re: Make a Windows Service start a windows program.
    ... | Is there any way for a windows service to start a windows program? ... service does not run in the security context of a logon user, ... variables or profile setting are needed. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Windows Service
    ... > Sounds like something similar is done with a "Windows service". ... that is they can run in their own security context or assume the context of ... I have Jeffrey Richter book, ... another on service control programs. ...
    (microsoft.public.win32.programmer.ui)