473,385 Members | 1,610 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,385 software developers and data experts.

Troubles with custom actions in VS2005

Hi,

I'm trying to use custom action in my setup project,
but whenever I try to use Installer class in order
to do something, the installation fails (and rolls back) with
the following message:

"Could not find file 'E:\Program Files\Default Company
Name\Setup1\InstallActions.InstallState'".

Here is the code snippet of my installer's class.

---------------- code snippet ---------------------------------
[RunInstaller(true)]
public partial class Installer1: Installer
{
public Installer1()
{
InitializeComponent();
this.Committed += new InstallEventHandler(Installer1_Committed);
}

void Installer1_Committed(object sender, InstallEventArgs e)
{
System.Diagnostics.Debugger.Break();
}
}
---------------- code snippet ---------------------------------

By the way, this worked in VS2003 (there I had implemented Install method
instead
of using event).

Can anybody help me?
--
Arthur Nesterovsky
Mar 21 '06 #1
1 1341
hi,

i think you have inclided the file in the Commit action.include the file in the installation wheather you use it or not

Regards
santosh





Hi,

I'm trying to use custom action in my setup project,
but whenever I try to use Installer class in order
to do something, the installation fails (and rolls back) with
the following message:

"Could not find file 'E:\Program Files\Default Company
Name\Setup1\InstallActions.InstallState'".

Here is the code snippet of my installer's class.

---------------- code snippet ---------------------------------
[RunInstaller(true)]
public partial class Installer1: Installer
{
public Installer1()
{
InitializeComponent();
this.Committed += new InstallEventHandler(Installer1_Committed);
}

void Installer1_Committed(object sender, InstallEventArgs e)
{
System.Diagnostics.Debugger.Break();
}
}
---------------- code snippet ---------------------------------

By the way, this worked in VS2003 (there I had implemented Install method
instead
of using event).

Can anybody help me?
--
Arthur Nesterovsky
Apr 26 '06 #2

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

Similar topics

1
by: Angela | last post by:
I wrote a class that I intended to be a custom action. I added the DLL for the class to the setup project using the CustomActions editor. When I run the installer it completely ignores the custom...
2
by: John Keers | last post by:
Hi Can anyone tell me how you run multiple msi's or install programs from a single msi. I'm using VS2005? Thanks
0
by: Gabriel Lozano-Morán | last post by:
We have developed an application that will replace the older version. The older versions comes in two flavors, a Lite and a Pro version. I can successfully remove the previous version of either the...
11
by: EmeraldShield | last post by:
I am developing a toolbar for IE6. I have referenced the sample project provided at http://www.codeproject.com/csharp/dotnetbandobjects.asp and the msdn article "Creating Custom Explorer Bars, Tool...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.