473,288 Members | 1,729 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,288 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 2839
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.