Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6598939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:25:23+00:00 2026-05-25T18:25:23+00:00

I have c# custom installer class that originally targeted .net 2.0. I have re-targeted

  • 0

I have c# custom installer class that originally targeted .net 2.0.
I have re-targeted it to .net 4.0, and now it does not seen to run.
I’ve proved this by adding Debugger.Break at relevent locations.

Under .net 2.0 the breakpoints are hit. I even tried targeting 3.5 and that worked.

I realise there a similar questions relating to this but the answers seem to suggest “wrong framework” or “use something else” variety.

Thanks!

Edit –

I have an installer class

public partial class ScriptRunner : Installer
{...

public override void Install(System.Collections.IDictionary stateSaver)
{
   System.Diagnostics.Debugger.Break();
   ...

This is tested by running the installer (i.e setup.exe). The break statement should cause a dialog to prompt to run the debugger. Under .net 2.0/3.5 this happens, but no under .net 4.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:25:23+00:00Added an answer on May 25, 2026 at 6:25 pm

    In .Net 4.0 the call to the debugger has been changed, this has thrown me off aswell at some point.

    Changing

    System.Diagnostics.Debugger.Break();
    

    Into

    System.Diagnostics.Debugger.Launch();
    

    Made it work for us, not sure if that also worked for 2.0 and 3.5 since we switched to 4.0 and stuck with it 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an unmanaged assebmly (encryption functionality) that a VB.NET (2.0) installer class uses
I have a custom installer action that updates the PATH environment, and creates an
I have a class library that I have written in C#.net. I want to
I have a setup project with a custom installer class which launch the application
I have an installer created using Visual Studio's Setup and Deployment that typically does
I have a Java program that loads thirdparty class files (classes I did not
In my installer I have set WixUIBannerBmp to point to my own custom dialog-banner.bmp
I have a mac with a custom PHP 5 install that built from about
I have custom classes that I currently instantiate within App.xaml as resources. I want
I have an existing (C# based) windows service that is derived from the Installer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.