Installation Utility ARCHIVEPACKAGE and other questions

This forum is for general developer support questions.
Post Reply
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Installation Utility ARCHIVEPACKAGE and other questions

Post by broadblues »

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

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\"")

emits an error like this:

Code: Select all


Installing ProAction!
['proaction.lha']
Exception exceptions.OSError: 'Cannot create package of requested type' in 'garbage collection' ignored
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.
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 12:06 am

Re: Installation Utility ARCHIVEPACKAGE and other questions

Post by xenic »

@broadblues
I don't know anything about Python but I did look at the SDK installer and "Installation Utility" with the Dopus4 HEX reader and the SDK Installer contains text referring to XAD (xadmaster.library). On the other hand, even though "Installation Utility" contains the term ARCHIVEPACKAGE there is no text referring to XAD, xadmaster.library or lha. In addition, all the archives (lha) on the OS4.1FE installation CD seem to be handled by AmigaDOS scripts or "Installer" scripts. It seems likely that "Installation Utility" may not actually handle archives like the SDK installer.

Is OS4Depot reliable enough to have your program rely on it for dependencies?
AmigaOne X1000 with 2GB memory - OS4.1 FE
Post Reply