Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Edwin van Koppen 156 posts 270 karma points
    Dec 11, 2012 @ 12:45
    Edwin van Koppen
    0

    Install package with API

    Hi All,

    I've got a problem with the install through the api, i saw in the Umbraco solution 2 ways to do this:

    Like this:
    installer.Install(dirPath, Guid.NewGuid().ToString(), _repoGuid);

    With this as an error (i do this on OnApplicationStarted):
    Request is not available in this context

    of like this:

    var pId = installer.CreateManifest(dirPath, Guid.NewGuid().ToString(), _repoGuid);
    installer.InstallFiles(pId, dirPath);
    installer.InstallBusinessLogic(pId, dirPath);
    installer.InstallCleanUp(pId, dirPath);

    the install then works fine but not the datatype, maybe it's a bug? Or do i not use the good api call?

     

  • Edwin van Koppen 156 posts 270 karma points
    Dec 14, 2012 @ 14:22
    Edwin van Koppen
    0

    Nobody ever tried this?

Please Sign in or register to post replies

Write your reply to:

Draft