I'm completely new to creating deployment projects, so I probably missed something simple. I've been trying to get a custom action to run, but I can't. Every time I tell it to run one, I get "The System cannot find the file specified" as it reaches the end of the installation. Initially, I thought it might have been a problem with my code, so I removed it and just left an empty Install method.
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
namespaceBarcodeAdmin
{
[RunInstaller(true)]
publicpartialclassInstaller1 : Installer
{
publicInstaller1()
{
InitializeComponent();
}
publicoverridevoidInstall(System.Collections.IDictionary stateSaver)
{
base.Install(stateSaver);
}
}
}
However, I still get the same error.
In the Custom Actions, under install, I have Primary output from BarcodeAdmin (Active)
with BarcodeAdmin being my main project. All the properties in the custom action are left at their default values. Once I can get this to run with an empty Install method, I can add in my code, but for now, I'm lost. Can anyone help me out with this?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Roei BarRank #1,271 · 1.4K reputationPosted Oct 2, 2009, 12:49 PM EDT
follow the steps in this article
http://support.microsoft.com/kb/317421
Master BillaRank #2,229 · 630 reputationPosted Oct 2, 2009, 9:42 PM EDT
When you are create custom action, you need take some steps.
here is those are given with sample
http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx
thank you