Unit test installers

I'm starting to do some installer work using WiX (yay, not Installshield), and I was hoping to make a TDD installer. Does anyone know how to do this?

+5
source share
4 answers

It sounds to me more like an integration test than TDD.

As far as I can tell, there are no tests to test MSI per se.

However, you can try something like this (assuming you have a console integration server):

  • after successful assembly, install MSI on a clean virtual machine - if the installation fails (mail, ticket, whatever)
  • execute any integration tags that you have in your project.

, , .

+6

, script, , . perl python script

test_installer_wix.pl

msiexec /x product.msi # remove
msiexec /i product.msi /silent # install

ASSERT_EXIST_FILE(PFILE, 'productname/application.exe')
ASSERT_REGKEY_EXISTS()

..

+2

, MSI. MSI : admin install , , , , .. , - , WIX , .

, , , MSI MSI. ICE ( ), *.cub SDK Windows. , , MSI. WIX smoke.exe.

0
source

All Articles