FreeHeroesII

From GrunchWiki
Jump to navigation Jump to search

;--------------------------------------------

{STANDARDBACKUP}
{STANDARDEXTRACT}
If EXISTS "{TEMPDIR}fheroes2"
Rename "{TEMPDIR}fheroes2" "{TEMPDIR}{NAME}"
EndIf
If EXISTS "{TEMPDIR}fheroes2.info"
Rename "{TEMPDIR}fheroes2.info" "{TEMPDIR}{NAME}.info"
EndIf
If EXISTS "{TEMPDIR}{NAME}/fheroes2"
Rename "{TEMPDIR}{NAME}/fheroes2" "{TEMPDIR}{NAME}/{NAME}"
EndIf
If EXISTS "{TEMPDIR}{NAME}/fheroes2.info"
Rename "{TEMPDIR}{NAME}/fheroes2.info" "{TEMPDIR}{NAME}/{NAME}.info"
EndIf
If EXISTS "{INSTALLDIR}{NAME}/fheroes2"
Delete FORCE "{INSTALLDIR}{NAME}/fheroes2"
EndIf
If EXISTS "{INSTALLDIR}{NAME}/fheroes2.info"
Delete FORCE "{INSTALLDIR}{NAME}/fheroes2.info"
EndIf
{STANDARDCOPY}
Echo "VERSION: {VERSION}.{REVISION}.{BUILD}" TO "{CHECKNAME}"
  • ## INSTALL END
  • ## UNINSTALL
{STANDARDBACKUP}
Delete FORCE "{INSTALLDIR}{NAME}" ALL
Delete FORCE "{INSTALLDIR}{NAME}.info"
Delete FORCE "{CHECKNAME}"
  • ## UNINSTALL END
  • ## ITEM END