   unarchive: ->
     @debug 'unarchive'
     @archived().then (archived) =>
-      throw new Error "not archived" unless archived
-      Q.nfcall fs.unlink, path.join @constructor.home, @archive()
+      throw new Error 'not archived' unless archived
+      Q.nfcall fs.unlink, @fullArchive()
 
   # Delete the ova.
   unova: ->
     @debug 'unova'
     @ovaed().then (ovaed) =>
-      throw new Error "not ovaed" unless ovaed
-      Q.nfcall fs.unlink, path.join @constructor.home, @ova()
+      throw new Error 'not ovaed' unless ovaed
+      Q.nfcall fs.unlink, fullOva()
 
   # Execute a command in the VM.
   exec: (cmd, args...) -> @ensureNotMissing().then => @ensureRunning().then =>

debug = require 'debug'

class IEVM
  # ## Class Properties

  # A list of all available IE versions.

    # Simply replace dashes and spaces with an underscore and add `.zip`.
    "#{@name.replace ' - ', '_'}.zip"

  fullArchive: -> path.join @constructor.ievmsHome, @archive()

  # Determine the name of the ova file as used by modern.ie.
  ova: ->
    return "IE6 - WinXP.ova" if @name in ['IE7 - WinXP', 'IE8 - WinXP']
    "#{@name}.ova"

  fullOva: -> path.join @constructor.ievmsHome, @ova()

  # Generate the full URL to the modern.ie archive.
  url: -> "http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/" +
