Copied to clipboard

Flag this post as spam?

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


  • pnr 131 posts 226 karma points
    Jun 11, 2010 @ 13:01
    pnr
    0

    My package need to create a folder when it is installed

    I made a package that needs a folder in the root, but how do i create that folder when the package is installed. Shall i make a user control to do that or is there an easyer way?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Jun 11, 2010 @ 15:12
    Richard Soeteman
    1

    Hi,

    The easiest way is to include a dummy file into your package. When that gets deployed the folder will be created automatically. When you want to program, I suggest you create a custom Package Action by implementing the IPackageAction interface. Then you can configure teh action in the package XML. Checkout this document for info on Package Actions. If you create a custom action please consider to contribute it to the packageactions contrib project

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft