Rob,
Did you try it already as a simple winform program. AFAIK can a
windowservice in Net not standard connect to the UI (what the shell in fact
is)
Cor
"Rob R. Ainscough" <(E-Mail Removed)> schreef in bericht
news:%(E-Mail Removed)...
> Cor,
>
> I didn't post all my code, just the critical parts. The start process is
> working fine as MSIEXEC is returning 1605 error code. I'm going to try to
> log the MSIEXEC output but according to Microsoft 1605 means "This action
> is only valid for products that are currently installed."
>
> What has me really puzzled is the exact same command entered via Start |
> Run works fine. There must be some undocumented "feature" of the Process
> or something? I've talked to other developers that have received the 1605
> from MSIEXEC when it had nothing to do with the actual error.
>
> Thanks, Rob
>
>
> "Cor Ligthert [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Rob,
>>
>> As this is your total code than it is definitly wrong because you are not
>> adding the ProsesStartInfo to the proces..
>>
>> See this sample to open regedit.
>>
>> \\\Registry
>> Dim p As New Process
>> Dim pi As ProcessStartInfo = New ProcessStartInfo
>> pi.FileName = "regedit"
>> pi.Arguments = "/S C:\yourRegFile.reg"
>> p.StartInfo = pi
>> p.Start()
>> ///
>>
>> I hope this helps,
>>
>> Cor
>>
>>
>> "Rob R. Ainscough" <(E-Mail Removed)> schreef in bericht
>> news:%(E-Mail Removed)...
>>> I'm using the Diagnostics.Process approach to shelling out run the
>>> following:
>>>
>>> C:\Windows\System32\MSIEXEC.EXE /x
>>> {73F1BDB7-11E1-11D5-9DC6-00C04F2FC33B} /q
>>>
>>> .FileName = "C:\Windows\System32\MSIEXEC.EXE"
>>> .Arguments = "/x {73F1BDB7-11E1-11D5-9DC6-00C04F2FC33B} /q"
>>> .Start()
>>>
>>> I do a WaitForExit and get an error code back from MSIEXEC of 1605 --
>>> this means product not installed. So I go into the registry to locate
>>> the produce code and verify that it does indeed exist. Since I'm
>>> baffled as to why shell ot MSIEXEC would return this error when the
>>> product IS installed, I decide to try Start | Run and enter the exact
>>> same:
>>>
>>> C:\Windows\System32\MSIEXEC.EXE /x
>>> {73F1BDB7-11E1-11D5-9DC6-00C04F2FC33B} /q
>>>
>>> and it works!!? So now, I'm really baffled.
>>>
>>> So why is does this NOT work using Diagnostics.Process approach?
>>> Obviously the product does indeed exists.
>>>
>>> Rob.
>>>
>>> P.S. - this is basically uninstalling a product (
>>>
>>
>>
>
>
|