473,748 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2867
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.c om> schrieb im Newsbeitrag
news:11******** *************@i 39g2000cwa.goog legroups.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
4201
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 IDE isn't capable of create a setup and deploy project and, in a elegant way, during the setup process, detect the absence of the Framework. In this case, I'd like to run the Dotnetredist.exe file, first, and the
6
2033
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 / clients, and the application has an Access DB out on their network. How can I create a deployment routine where I can have a dialog box prompt for the network share (i.e. \\server\dbfolder) at install-time? Once network the share is specified...
3
2943
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 custom action (EXE) at the install condition. Unfortunately when I roll out my MSI I don't see the custom action being executed. For now I just wrote few lines on my customAction.exe (like hello world etc) its a console application. Can someone...
0
3648
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. When my C# custom actions run, the progress dialog doesn't display any text as to what is happening. I have explored several options as follows. Normally, you can enter the action text in the ActionText table by giving the name of the custom...
4
20889
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 anywhere? Thanks, Joe
1
3601
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- Common.dll, Logging.dll, Configuration.dll, Data.dll into setup project so that it is also installed automatically. It should perform what the 'Install Services.bat ' performs. I have created ProjectInstaller.cs file also
3
1595
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 hangs at the end. I tried to create a small setup project in vs 2005 and I was able to run the setup in vista machine. So I'm wondering if there are any patch / fix for VS 2003 to run in vista? Thanks for your help.
3
2415
by: =?Utf-8?B?UGF0?= | last post by:
How can I create a setup and deploment project which does not create Advertised Shortcuts.
4
3699
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
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9250
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8247
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4878
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.