Automatic testing of install packages - Advanced Installer Community

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!

davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Automatic testing of install packages

Hi,

What is the best way to automatically test install packages. i.e to do a test install on virtual machines or something like that ?

We currently have a FinalBuilder project that builds our app and creates the install package, we'd also like it to confirm that the install package will indeed install correctly.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Automatic testing of install packages

Hello,

You can use MSIEXEC.EXE return codes to accomplish this. If the msiexec process returns 0, it means the installation was successful. Here is a Microsoft article to help you with this.

You can have a .BAT file for example that launches your installer package using msiexec command line:

Code: Select all

msiexec.exe /i "C:\Example.msi"
and then verifies the return code.

However, please keep in mind that with this approach you will also have to add an uninstall command line as well at the end of this process:

Code: Select all

msiexec.exe /x "C:\Example.msi"
This is to avoid any error messages("Another program is already installed...") when performing the next automated build and install test.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”