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 4 1288
"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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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
-...
|
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...
|
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?...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |