When the 4.xx viewer was still something of a work-in-progress (I was using the 3.48 portable viewer), I had to use
Types to change the file class to something other than "calibreViewer.AssocFile.EPUB" to prevent the main installer from overwriting the association when I updated.