Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Custom Installation

Custom Installation

Scheduled Pinned Locked Moved C#
csharpquestionc++visual-studioannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lune12
    wrote on last edited by
    #1

    Hi, I want to perform an action before the beginning of an application installation. I tried to override the event OnBeforeInstall (in the AddInCustomAction class) but I see that when that event is raised my files were already copied to the target directory. The reason for what I want to do is: I have a previous version of the application (without setup; just an exe) written in MFC. Now I rewrite the application in C# .Net VS 2005, and the installation is done via a setup. I don't want to change the name of the exe and nor the name of the Target directory. so what I want to do is: before the installation begin: check that the previous verion doesn't exist. if exists, remove the old exe continue the installation Any Ideas How can I do this? Thanks,

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups