Installation Utility ARCHIVEPACKAGE and other questions

This forum is for general developer support questions.

Installation Utility ARCHIVEPACKAGE and other questions

Postby broadblues » Thu May 04, 2017 1: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

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.
User avatar
broadblues
Beta Tester
Beta Tester
 
Posts: 416
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: Installation Utility ARCHIVEPACKAGE and other questions

Postby xenic » Fri May 05, 2017 6:13 pm

@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
xenic
 
Posts: 938
Joined: Sun Jun 19, 2011 1:06 am


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 1 guest