473,218 Members | 1,418 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,218 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 1283
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.