home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
General
Installation Setup Failed - Error 0x80070643
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="aspik" data-source="post: 1228347" data-attributes="member: 72523"><p>I looked into this a bit more.</p><p></p><p>The first custom action StopProcesses throws an exception most probably by <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/Core/MediaPortal.Utilities/Process/IpcClient.cs#L48" target="_blank">GetFiles</a>. The exception is caught <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/CustomActions/ProcessActions.cs#L45-L48" target="_blank">here</a> and in the log the exception is logged as an error</p><p></p><p>The StopProcesses action has the <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/MP2-Setup/Fragments/CustomActions.wxs#L13" target="_blank">return</a> attribute set to ignore:</p><p>[CODE=XML] <CustomAction Id="StopProcesses" BinaryKey="Custom_Action_Dll" DllEntry="StopProcesses" Impersonate="no" Execute="immediate" Return="ignore" />[/CODE]</p><p>Which means that the return code (failure) will be ignored and the whole custom action will be marked as success:</p><p></p><p></p><p>I found that on some system the <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/Core/MediaPortal.Utilities/Process/IpcClient.cs#L48" target="_blank">way</a> we searching for MP2 processes can throw an <a href="https://stackoverflow.com/questions/25109491/how-can-i-get-a-list-of-all-open-named-pipes-in-windows-and-avoiding-possible-ex" target="_blank">exception</a>. </p><p>[USER=150866]@osre[/USER] </p><p>What do you think? </p><p></p><p>The second error is an exception in the PrepareXmlPathVariables custom action:</p><p></p><p>It occurs probably somewhere <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/CustomActions/CustomActions.cs#L357-L400" target="_blank">here</a> in the one of the string operations. There is no try catch block, so the exception isn't nowhere caught. And this action has the <a href="https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/MP2-Setup/Fragments/CustomActions.wxs#L6" target="_blank">return</a> attribute set to check, means: if this action fails, the whole installation fails. </p><p></p><p>Unfortunately I have no idea whats the reason for the exception on your system. The only way to get some more info would be debug this action on your system or prepare an build with additionally logging.</p></blockquote><p></p>
[QUOTE="aspik, post: 1228347, member: 72523"] I looked into this a bit more. The first custom action StopProcesses throws an exception most probably by [URL='https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/Core/MediaPortal.Utilities/Process/IpcClient.cs#L48']GetFiles[/URL]. The exception is caught [URL='https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/CustomActions/ProcessActions.cs#L45-L48']here[/URL] and in the log the exception is logged as an error The StopProcesses action has the [URL='https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/MP2-Setup/Fragments/CustomActions.wxs#L13']return[/URL] attribute set to ignore: [CODE=XML] <CustomAction Id="StopProcesses" BinaryKey="Custom_Action_Dll" DllEntry="StopProcesses" Impersonate="no" Execute="immediate" Return="ignore" />[/CODE] Which means that the return code (failure) will be ignored and the whole custom action will be marked as success: I found that on some system the [URL='https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Source/Core/MediaPortal.Utilities/Process/IpcClient.cs#L48']way[/URL] we searching for MP2 processes can throw an [URL='https://stackoverflow.com/questions/25109491/how-can-i-get-a-list-of-all-open-named-pipes-in-windows-and-avoiding-possible-ex']exception[/URL]. [USER=150866]@osre[/USER] What do you think? The second error is an exception in the PrepareXmlPathVariables custom action: It occurs probably somewhere [URL='https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/CustomActions/CustomActions.cs#L357-L400']here[/URL] in the one of the string operations. There is no try catch block, so the exception isn't nowhere caught. And this action has the [URL='https://github.com/MediaPortal/MediaPortal-2/blob/196b021d29f643c8d01600c33df6b636206226da/MediaPortal/Setup/MP2-Setup/Fragments/CustomActions.wxs#L6']return[/URL] attribute set to check, means: if this action fails, the whole installation fails. Unfortunately I have no idea whats the reason for the exception on your system. The only way to get some more info would be debug this action on your system or prepare an build with additionally logging. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
General
Installation Setup Failed - Error 0x80070643
Contact us
RSS
Top
Bottom