Installation Utility ARCHIVEPACKAGE and other questions
Posted: Thu May 04, 2017 12:30 am
I'm putting togther an Installer using the python based Installtion Utility.
Part of the installation downloads archives of dependencies from os4depot and I'd like to simply install one of those with a package of type ARCHIVEPACKAGE
However code like this
emits an error like this:
Also I couldn't create a page of type PACKAGESELECT, the SDK installer uses such IIRC although it appears to be an all binary installer so maybe it's not based Installation Utility despite it's similar look and feel.
Part of the installation downloads archives of dependencies from os4depot and I'd like to simply install one of those with a package of type ARCHIVEPACKAGE
However code like this
Code: Select all
def installProAction():
installedpath = GetEnv("Appdir/Proaction")
archive = fetchArchive("http://os4depot.net/share/library/reaction/proaction.lha")
if archive:
myArchives = [archive]
print myArchives
if installedpath:
if os.path.basename(installedpath).upper() == "PROACTION":
installedpath = os.path.dirname(path)
proactionpkg = AddPackage(ARCHIVEPACKAGE,
name="ProAction Package",
alternatepath = installedpath,
description="",
files = myArchives
)
else:
proactionpkg = AddPackage(ARCHIVEPACKAGE,
name="ProAction Package",
description="",
files = myArchives
)
else:
os.system("C:RequestChoice \"Download Failed\" \"Unable to download the ProAction archive\" \"OK\"")
Code: Select all
Installing ProAction!
['proaction.lha']
Exception exceptions.OSError: 'Cannot create package of requested type' in 'garbage collection' ignored