473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP.NET web setup, custom actions, windows installer SDK

Hi,
I am trying to create a web setup project for my asp.net 2.0 website
and I had some problems. It worked fine until I want to add some custom
actions into it. As some of you already knew, custom actions get fired
AFTER the real installation is done.

I want to do some things like
1) check if some required software is in position if not execute an
installer
2) backup some important files before installation
3) check if previous version exists, if so uninstall it

But I need the installer execute my code in some sequence but it just
can't!

So, my question is, how do I do this? I heard about Orca, is this gonna
help me? Or will Windows installer SDK help me here?

Thanks in advance.

May 19 '06 #1
1 2840
In general, Windows Installer has many options for scheduling custom
actions, but Visual Studio doesn't expose them. So generally speaking a more
powerful authoring tool should help you. Orca is a very low level tool which
can do this but it's not very convenient, and you need to read the SDK to
make sure you understand what you are doing.
Recommended reading:
http://blogs.msdn.com/windows_instal...01/587990.aspx
List of MSI authoring tools (including freeware and open source):
http://www.installsite.org/go/msidev.htm

To check for some other software and exit if it's not there you can use the
LaunchCondition table. If you want to install the missing software
automatically you may be able to use a custom action (that depends on the
software you want to install) but it's better to use a prerequisite
installer tool. See http://www.msifaq.com/a/1036.htm

To backup existing files you can use the MoveFile table.

To detect and uninstall the previous version you can use the Upgrade table.
In Visual Studio there's an option "remove previous version" that you can
set to true.

--
Stefan Krueger
Microsoft Windows Installer MVP

Please post your questions in the newsgroup or vist one of these web sites:

Windows Installer FAQ
http://www.msifaq.com - http://www.msifaq.de

InstallSite - Resources for Setup Developers
http://www.installsite.org
http://www.installsite.de (GERMAN)
<ly****@gmail.com> schrieb im Newsbeitrag
news:11*********************@i39g2000cwa.googlegro ups.com...
Hi,
I am trying to create a web setup project for my asp.net 2.0 website
and I had some problems. It worked fine until I want to add some custom
actions into it. As some of you already knew, custom actions get fired
AFTER the real installation is done.

I want to do some things like
1) check if some required software is in position if not execute an
installer
2) backup some important files before installation
3) check if previous version exists, if so uninstall it

But I need the installer execute my code in some sequence but it just
can't!

So, my question is, how do I do this? I heard about Orca, is this gonna
help me? Or will Windows installer SDK help me here?

Thanks in advance.

May 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET...
6
by: Paul | last post by:
Hello everyone: I am developing a VB.Net Windows Application and I am now ready to create the deployment project for it. This application needs to be installable on a different number of users...
3
by: Vai2000 | last post by:
Hi All, I need to execute custom action during installation of my program (through MSI). Creating the MSI was pretty straight fwd. After that I went into the Custom Action Editor and added the...
0
by: Ron Andersen | last post by:
I have C# custom actions and merge modules created in Visual Studio to install some components of the application I am working on. The merge modules are used with an Install Shield 9 project. ...
4
by: Joe | last post by:
I created a CustomAction for this but I don't think I have it in the right place. I tried both Install and Commit but neither allow it to get to the final screen. Are there any examples of this...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
3
by: John | last post by:
I created a setup project in VS 2003 to deploy a windows application. I'm able to run that installer in any windows xp m/c, when I try to install the setip in a vista m/c, it goes all the way and...
3
by: =?Utf-8?B?UGF0?= | last post by:
How can I create a setup and deploment project which does not create Advertised Shortcuts.
4
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, I continue with installation. I create three windows services. Each service has a Installer class.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.