We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

negro.andrea
Posts: 8
Joined: Fri Apr 10, 2015 1:16 pm
Location: Turin, Italy

Chained MSI Fail System error 258.

Hello Support Team,

I have a problem deployng a package containing a chained MSI

My package contains 3 chained msi and should install one on the basis of a choice made by the user.

To do this, I created a dialog that set a property, and in the installation options of every chained msi I put the following condition: (not Installed) and (MYPROPERTY= "0") - for first chained msi, "1" for the second one and "2" for the third

the property is set correctly but when I run the pachage it fail whit this error

=== Verbose logging started: 15/04/2015 12:22:36 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\WINDOWS\Installer\MSIA6C7.tmp ===
MSI (c) (3C:60) [12:22:36:833]: Resetting cached policy values
MSI (c) (3C:60) [12:22:36:833]: Machine policy value 'Debug' is 0
MSI (c) (3C:60) [12:22:36:833]: ******* RunEngine:
******* Product: D:\users\Administrator\AppData\Roaming\xxxx\xxxx\install\D2073A3\xxxx.msi
******* Action:
******* CommandLine: **********
MSI (c) (3C:60) [12:22:36:833]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (3C:60) [12:22:39:863]: Failed to grab execution mutex. System error 258.
MSI (c) (3C:60) [12:22:39:863]: Cloaking enabled.
MSI (c) (3C:60) [12:22:39:863]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (3C:60) [12:22:39:863]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (04:6C) [12:22:39:863]: Running installation inside multi-package transaction D:\users\Administrator\AppData\Roaming\xxxx\xxxx\install\D2073A3\xxxx.msi
MSI (s) (04:6C) [12:22:39:863]: Grabbed execution mutex.
MSI (s) (04:BC) [12:22:39:863]: Resetting cached policy values
MSI (s) (04:BC) [12:22:39:863]: Machine policy value 'Debug' is 0
MSI (s) (04:BC) [12:22:39:863]: ******* RunEngine:
******* Product: D:\users\Administrator\AppData\Roaming\xxxx\xxxx\install\D2073A3\xxxx.msi
******* Action:
******* CommandLine: **********
MSI (s) (04:BC) [12:22:39:863]: Note: 1: 2203 2: D:\users\Administrator\AppData\Roaming\xxxx\xxxx\install\D2073A3\xxxx.msi 3: -2147287038
MSI (c) (3C:40) [12:22:39:863]: Creating MSIHANDLE (1) of type 790531 for thread 7744
MSI (c) (3C:40) [12:22:39:879]: Closing MSIHANDLE (1) of type 790531 for thread 7744
MSI (s) (04:BC) [12:22:39:879]: MainEngineThread is returning 2
MSI (c) (3C:60) [12:22:39:879]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (3C:60) [12:22:39:879]: MainEngineThread is returning 2
=== Verbose logging stopped: 15/04/2015 12:22:39 ===


Thank you and best regards
Andrea
Andrea Negro - ECM Consultant
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Chained MSI Fail System error 258.

Hi Andrea and welcome to Advanced Installer forums,

Can you please tell us if you can replicate the behaviour on multiple clean machines?
If Yes, please send us the .AIP (project file) and a verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behaviour.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
negro.andrea
Posts: 8
Joined: Fri Apr 10, 2015 1:16 pm
Location: Turin, Italy

Re: Chained MSI Fail System error 258.

Hi Dan,

I resolved the issue moving my custom action in the finish dialogs stage and uncheking "Wait for custom action to finish before proceeding"

Can you tell me at what points I can put a custom action that runs a vbs that installs an msi present in the package?

I also send a example package that not work.

Best Regards,
Andrea
Andrea Negro - ECM Consultant
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Chained MSI Fail System error 258.

Hi Andrea,

Windows Installer allows only one MSI-based installation to run at any given time. Therefore, if you launch another MSI package while an MSI installation is in progress (install sequence), you will see this message:
Error 1500. Another installation is in progress. You must complete that installation before continuing this one.
The recommended approach is to add it as a feature based prerequisite in the Prerequisites page. Please take a look on the Add Prerequisite article with related information for hints and guidance.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
negro.andrea
Posts: 8
Joined: Fri Apr 10, 2015 1:16 pm
Location: Turin, Italy

Re: Chained MSI Fail System error 258.

Hi Dan,
the error I posted at the beginning is that one the installation returns when I add the msi in prerequisites as chained msi.

I can't use "new package prerequisite" because i want it to be the user to choose whether to install the secondary msi

Best regards,
Andrea
Andrea Negro - ECM Consultant
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Chained MSI Fail System error 258.

Hi Andrea,
I can't use "new package prerequisite" because i want it to be the user to choose whether to install the secondary msi
I'm not sure why you say that. Please note that the prerequisite can be mandatory and the user cannot choose whatever or not install the feature based prerequisite.

The feature-based or post-install prerequisites create its own feature entry in the Organization page. So, if you are using a dialog to display the existing features then you can exclude them from the list by selecting the Not Displayed option for the Feature-Tree feature property. You can also enable the Always install the feature. The Entire feature will be unavailable" option will not be available for this feature in "CustomizeDlg. option from the Installation Settings of the feature properties.

For details, please check the Feature Properties article.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”