WinBatch Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: Secondlaw on July 18, 2018, 05:31:10 am

Title: MSI (Windows Installer) Automation
Post by: Secondlaw on July 18, 2018, 05:31:10 am
Curious to know if anyone has used winbatch to automate .MSI creation.  If so, would you mind sharing some of the knowledge?
Title: Re: MSI (Windows Installer) Automation
Post by: td on July 18, 2018, 06:56:52 am
Windows has MSI related COM Automation interfaces.  But I have not used them and am not sure exactly what you need to automate so I can't provide much help or advice.   There is one example in the Tech Database that shows how to get version information from an MSI file.  It can be found here:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/WindowsInstaller+Get~Product~Version~from~MSI.txt  (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/WindowsInstaller+Get~Product~Version~from~MSI.txt)

The MSFT documentation for the installer interfaces can be found here:

https://docs.microsoft.com/en-us/windows/desktop/msi/installer-object
 (https://docs.microsoft.com/en-us/windows/desktop/msi/installer-object)
Title: Re: MSI (Windows Installer) Automation
Post by: kdmoyers on July 19, 2018, 05:11:59 am
I know the oft-mentioned WinINSTALL LE is still available at http://scalable.marketing.downloads.s3.amazonaws.com/WinINSTALL_LE.exe
Have not actually tried it myself though.