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. MSI Setup - custom action rollback

MSI Setup - custom action rollback

Scheduled Pinned Locked Moved C#
helpvisual-studioalgorithmsquestionworkspace
3 Posts 2 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.
  • M Offline
    M Offline
    Mogyi
    wrote on last edited by
    #1

    Hello, I am making a MSI setup with VS 2005 and have a custom action DLL added. I've been searching for a solution for my problem for a week now... My problem is exiting the custom action when the user clicks cancel on my dialog. The issue is that if I throw a InstallException, I get a error message box that refers to unhandeld exception. How can you exit a the installation from MSI without having this error message box? By exit I mean, rollback...

    H 1 Reply Last reply
    0
    • M Mogyi

      Hello, I am making a MSI setup with VS 2005 and have a custom action DLL added. I've been searching for a solution for my problem for a week now... My problem is exiting the custom action when the user clicks cancel on my dialog. The issue is that if I throw a InstallException, I get a error message box that refers to unhandeld exception. How can you exit a the installation from MSI without having this error message box? By exit I mean, rollback...

      H Offline
      H Offline
      HemJoshi
      wrote on last edited by
      #2

      In Rollback part just add the dll... I think it should work...jus try it

      M 1 Reply Last reply
      0
      • H HemJoshi

        In Rollback part just add the dll... I think it should work...jus try it

        M Offline
        M Offline
        Mogyi
        wrote on last edited by
        #3

        I added to rollback my dll too, the problem is: if I call Rollback directly nothing happens, if I say 'throw new InstallException("Canceld by user");' it rolls back nicely but before that, a general error MessageBox is shown...

        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