BDeveloper
BDeveloper

Reputation: 1287

Advanced installation regarding to C#

I want to make an advanced installer for my C# application. |I want my application continue its installation after the pre-requisites been installed.

My scenario is:

STOPPED INSTALLATION

After this step (after restarting) I want myApplication to continue the installation (go to the last stage of the installation)

Any suggestion on how I do this ?!?!

Upvotes: 1

Views: 382

Answers (4)

Spence
Spence

Reputation: 29372

Are you aware that your compiled c# app itself will do this? The bootstrapper compiled into a .Net exe will contain a redirect to get the framework with a working link to the microsoft website.

Upvotes: 0

Robert Venables
Robert Venables

Reputation: 5981

I would suggest taking a look at the nullsoft install system. Use the Modern UI theme and the DotNET macro (http://nsis.sourceforge.net/DotNET). That's everything that you are looking for prebuilt, for free, and you can be up and running with very little effort.

I've had experience releasing applications with this route and it works very well.

Upvotes: 1

Gary Willoughby
Gary Willoughby

Reputation: 52608

Install in this order:

  1. Install the .NET framework
  2. Install your app.
  3. Restart if needed.

You can create an installation project in VS2005/8 to handle installing your app and any needed dependencies.

Upvotes: 0

Steven Robbins
Steven Robbins

Reputation: 26599

Things like InstallShield, or one of the other installer creation tools would be able to handle the pre-requisite side of things for you. If you want to roll your own, then you could check for the framework, perform the various steps you mentioned to install it, then add you setup application to the RunOnce registry key so it starts again on startup.

Looking at something that would handle all the pre-requisites etc for you would be my choice though :-)

Upvotes: 1

Related Questions