Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Dec 16, 2010 @ 19:01
    Connie DeCinko
    0

    How to have package backup files before replacing

    I am creating a package to be used to update a user control file and it's related DLL.  Is there a way I can make my package backup the existing files or rename them before copying the new versions to the server?

     

  • Chris Koiak 700 posts 2626 karma points
    Dec 17, 2010 @ 11:09
    Chris Koiak
    0

    You can put custom installation code in a .ascx file and then add that to the package.

    You could potentially use the 'Move File' package action to solve this too http://our.umbraco.org/wiki/reference/packaging/package-actions/community-made-package-actions/move-a-file

  • Connie DeCinko 931 posts 1160 karma points
    Dec 17, 2010 @ 15:44
    Connie DeCinko
    0

    I saw the option for custom install code but was not sure when that fires.  It appears it fires after the files in the package are copied, which would be too late.

     

Please Sign in or register to post replies

Write your reply to:

Draft