Copied to clipboard

Flag this post as spam?

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

  • MK 429 posts 906 karma points
    Apr 10, 2014 @ 09:43

    Adding Actions to the Package Action tab

    Hi there,

    Ive added a few package actions that should add keys to the appsetting in umbraco 7.1.1  web.config with no success.

    The package is installed but no keys are added to the web.config.

    Any idea on how to make it work?



  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 10, 2014 @ 09:58
    Dennis Aaen

    Hi Moshe,

    DonĀ“t know if this documentation could be any help at a version 7 or if you have seen this?.


  • Kim Dahlberg 1 post 71 karma points
    Nov 20, 2018 @ 12:55
    Kim Dahlberg

    That link is removed, I found this instead

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 10, 2014 @ 10:11
    Jan Skovgaard

    Hi Moshe

    Try the link Dennis posted above - If you need some inspiration you can perhaps get some by having a peak at the source code of the installer for exponent cropup

    Can't remember if it adds a key to the appsettings part though but I think that the concept is illustrated in the source you just need to change the element where it needs to be added.

    Hope this helps.


  • MK 429 posts 906 karma points
    Apr 11, 2014 @ 13:42


    Many thanks for your reples!

    Dennis, Ive tried that with no success.

    Jan, Also tried your link but also here I wasnt able to get it right. It seems as if the Execute methos is not being called.

    any idea?



  • Richard Soeteman 4042 posts 12890 karma points MVP 2x
    Apr 14, 2014 @ 13:38
    Richard Soeteman


    I think the action is already in PackageAction contrib? but 9 out of 10 times it's the xml that is wrong when you run into issues. Check and double check if the xml is correct.



  • Harvey 28 posts 122 karma points
    Dec 02, 2015 @ 12:03

    Sorry to drag up an old topic, but there is a really limited amount of documentation on this subject.

    The link that Dennis Aaen gave us ( has a link to a package action tester ( However, this package action tester does not work in later versions of Umbraco (tested on Umbraco 7.2.8) because of a missing core util that has been deprecated (GitHub link to missing util).

    There is a newer package action tester that can be found here (works on 7.2.8). This package action tester tests to see if the XML is valid - it will return an error if the XML is not valid. However, it won't test to see if the action is a valid action.

    If we take a look at the current Umbraco documentation (here), we can see what package actions are available. Unfortunately, pretty much all of the actions in the documentation (that Dennis Aaen linked us to) don't exist in the current Umbraco core.


    <Action runat="install" alias="addApplication" appName="testAppName" appAlias="testAppAlias" appIcon="testAppIcon" />

    in the package action tester, will create the following line in the applications node in the applications.config found in the Config folder of an Umbraco installation.

    <add alias="testAppAlias" name="testAppName" icon="testAppIcon" sortOrder="17" />

    So, I guess this shows that package actions can be used to run changes on the site.

    Going back to the link that Dennis Aaen gave us to the extra documentation, there is a link to some extra actions. If you download the DLL from that project and put it into your Umbraco site, then run the following action through the tester:

    <Action runat="install" undo="true" alias="AddAppConfigKey" key="TestKey" value="TestValue" />

    Then the following key will be added to the appSettings in the web config:

    <add key="TestKey" value="TestValue" />

    I have just tested and found that if you package that DLL into your package (jn the Package Files tab when creating your package through Umbraco), then add the actions to the Package Actions tab, you will be able to use the extra actions that the DLL adds.

    I hope this helps anyone trying to figure out how to use package actions when creating a package!

  • Harvey 28 posts 122 karma points
    Dec 02, 2015 @ 12:09

    If anyone is interested in adding further package actions to their package, I recommend doing what Merchello has done.

Please Sign in or register to post replies

Write your reply to: