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 3673766
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:46:23+00:00 2026-05-19T02:46:23+00:00

I am trying to build an MSI project, and during installation I am installing

  • 0

I am trying to build an MSI project, and during installation I am installing a Windows Service. If that service fails to be installed, I want to initiate rollback and cancel the installation.

I have already built an installer class and overridden the install and uninstall method. How can I initiate rollback?

  • 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-19T02:46:24+00:00Added an answer on May 19, 2026 at 2:46 am

    First you should know that using InstallUtil custom actions ( regardless of how documented and written about they are ) are not a good choice. Throw them away. The same goes for the Visual Studio Deployment Project that you are using to consuem your custom action.

    The best solution lies in leveraging Windows Installer built-in support for creating and starting services. Use InstallShield 2010 Limited Edition ( Free ) or Windows Installer XML ( FOSS ). These tools expose the ServiceControl table which has a Wait column that allows you to teach MSI:

    Wait
    Leaving this field null or
    entering a value of 1 causes the
    installer to wait a maximum of 30
    seconds for the service to complete
    before proceeding. The wait can be
    used to allow additional time for a
    critical event to return a failure
    error. A value of 0 in this field
    means to wait only until the service
    control manager (SCM) reports that
    this service is in a pending state
    before continuing with the
    installation.

    ServiceControl Table

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

Sidebar

Related Questions

I have an MSI installer project that installs a windows service. My version numbering
Trying to build a mavenized project with NetBeans fails: Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.5:generate
Trying to build Xuggler under Windows. Xuggler is core native code functions wrapped into
Trying to build my project with ANT in idea 10 and I get a
I have a std::vector< tr1::shared_ptr<mapObject> > that I'm trying build from data contained in
I'm trying to create an MSI for my project using WIX. I've got HEAT
I'm trying build a regex that will replace any characters not of the format:
Trying to build a plugin effect that will some what look better than this
Trying to build a dynamic gallery that is loaded via AJAX. I'm trying to
Trying to build my android project with Buildr (Apache), but can't find any info

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.