2
Answers

Custom action gives me "The System cannot find the file specified"

Gamaliel Martinez

Gamaliel Martinez

13y
4.7k
1
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.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;

namespace BarcodeAdmin
{
[RunInstaller(true)]
public partial class Installer1 : Installer
{
public Installer1()
{
InitializeComponent();
}
public override void Install(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?

Answers (2)