AVR Studio 5.0 installation failed to initialize.

When you download AVR Studio 5.0 and launch it, you might be an unfortunate engineer to get an error, something like

===================
>SetupNew\setup.cpp(140)
PAPP:
PVENDOR:
PGUID:
$15.0.0.498
@Windows 2000 Service Pack 4 (2195)
IE Version: 6.0.2800.1106

One cause for this error, is that you either ended up with a corrupted download or a download that is modified somewhere (virus in most cases). Please try to download the installation again and try it. Some tips…….

  • Download the installer from an authentic source. (atmel.com for instance).
  • Check if your downloader used multiple sessions to download different parts of the installer and merged them. In some cases the merging might result in a error, that could cause this failure. (Peer-Peer downloads, Torrents will cause this kind of situations usually)
  • Verify the downloaded installer against the actual MD5 or SHA keys. ATMEL currently doesn’t publish them in the web, but you can request them from avr@atmel.com.

What error is this ?

AVR Studio 5.0 is created using Install Shield Packaging software. When you click the AVR Studio Installer executable it will actually initialize the Install Shield runtime (Setup.dll) which will try to extract all the installation related files to a temporary location. In this process, if it finds a file missing, or finds scarce permissions to copy files to temporary location then this kind of errors will come. There are also other reasons that can cause this error, but they are very much specific to the target environment. I will cover them in an another post.