Jump to content

Autoit and MsiSetExternalUI/MsiSetExternalUIRecord


Recommended Posts

I'm using an Autoit script to perform some housekeeping tasks before launching an MSI installer.

I used to do this all silently, but now I'm being asked to expose some basic progress UI. I already have a progress bar for my housekeeping tasks, but now I'd like to grab progress information from the MSI install process to keep the progress bar incrementing during the install rather than have it jump from 50% to 100% with a lengthy delay. I could cheat and just put the progress bar on a timer for the MSI portion, but that's not very elegant.

I did some googling and found that MsiSetExternalUI or MsiSetExternalUIRecord can be used to grab progress info from the MSI install process, but not I'm not very experienced with C/C# programming. Not averse to learning, but I was hoping someone had some sample Autoit integration code they could share to speed my learning.

Link to comment
Share on other sites

  • 9 months later...
  • Moderators

I would think doing everything properly through the MSI would be easier. You can use Wix and Orca, if you want something free, or AdminStudio if your company is willing to pay for a professional product. I would import your pre- or post- installation scripts as custom actions in the MSI and then simply run the MSI with the minimal UI interface. Windows Installer keeps track of the progress for you.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...