Grunch

From GrunchWiki
Jump to navigation Jump to search

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

{STANDARDBACKUP}
{STANDARDEXTRACT}
If EXISTS "{TEMPDIR}{NAME}/Bin"
If "{SystemOS}" EQ "AmigaOS3"
If EXISTS "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}"
Copy "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}" "{TEMPDIR}{NAME}/{NAME}"
EndIf
If EXISTS "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}.info"
Copy "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}.info" "{TEMPDIR}{NAME}/{NAME}.info"
EndIf
EndIf
If "{SystemOS}" EQ "AmigaOS4"
If EXISTS "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}"
Copy "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}" "{TEMPDIR}{NAME}/{NAME}"
EndIf
If EXISTS "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}.info"
Copy "{TEMPDIR}{NAME}/Bin/{NAME}_{SYSCPU}.info" "{TEMPDIR}{NAME}/{NAME}.info"
EndIf
EndIf
Delete FORCE ALL "{TEMPDIR}{NAME}/Bin"
EndIf

; remove other files only required for installation

If EXISTS "{TEMPDIR}{NAME}/{NAME}.install"
Delete FORCE "{TEMPDIR}{NAME}/{NAME}.install"
EndIf
If EXISTS "{TEMPDIR}{NAME}/{NAME}.install.info"
Delete FORCE "{TEMPDIR}{NAME}/{NAME}.install.info"
EndIf
If EXISTS "{TEMPDIR}{NAME}/GetSystemType"
Delete FORCE "{TEMPDIR}{NAME}/GetSystemType"
EndIf
If EXISTS "{TEMPDIR}{NAME}/NewInstaller"
Delete FORCE "{TEMPDIR}{NAME}/NewInstalLer"
EndIf

; delete files already located in installation due prior drag and drop installation

If EXISTS "{INSTALLDIR}{NAME}/{NAME}.install"
Delete FORCE "{INSTALLDIR}{NAME}/{NAME}.install"
EndIf
If EXISTS "{INSTALLDIR}{NAME}/{NAME}.install.info"
Delete FORCE "{INSTALLDIR}{NAME}/{NAME}.install.info"
EndIf
If EXISTS "{INSTALLDIR}{NAME}/GetSystemType"
Delete FORCE "{INSTALLDIR}{NAME}/GetSystemType"
EndIf
If EXISTS "{INSTALLDIR}{NAME}/Bin"
Delete FORCE ALL "{INSTALLDIR}{NAME}/Bin"
EndIf
If EXISTS "{INSTALLDIR}{NAME}/C"
Delete FORCE ALL "{INSTALLDIR}{NAME}/C"
EndIf
If EXISTS "{INSTALLDIR}{NAME}/NewInstaller"
Delete FORCE ALL "{INSTALLDIR}{NAME}/NewInstaller"
EndIf
{COPYALL}
{CREATEWBSTARTUPICON}
If EXISTS "{INSTALLDIR}{NAME}/Database/Private"
Delete FORCE ALL "{INSTALLDIR}{NAME}/Database/Private"
EndIf
  • ## INSTALL END
  • ## ITEM END