E
Eric
Using VS.Net 2003 .Net framework 1.1 SP1
Our installation project calls a Custom Action dll to perform post install
actions. It fails if the .msi file is launch from a directory that contains
spaces, such as:
My Install Folder\SetupDir
The exception thrown is:
Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name and, or one of its
dependencies, was not found
In the custom action project, I've overridden both Install and Commit. The
commit section is the method that does the actual work. We placed message
boxes at the top
of each function to attempt to see where the failure occurred. We see the
"Reached Install" message but not the Commit. By attaching to the process
I've also confirmed that the call to base.Install(stateSaver) is called and
does not throw the exception. So somewhere after base.Install(stateSave)
and the entry into Commit the error mentioned above is thrown. If the .msi
is launched from MyInstallFolder\SetupDir all is fine. Not sure where to go
with this at this point. Help would be appreciated.
public override void Install(IDictionary stateSaver)
{
MessageBox.Show("Reached Install");
base.Install (stateSaver);
}
public override void Commit(IDictionary savedState)
{
MessageBox.Show("Reached Commit");
base.Commit (stateSaver);
rest of code....
}
Our installation project calls a Custom Action dll to perform post install
actions. It fails if the .msi file is launch from a directory that contains
spaces, such as:
My Install Folder\SetupDir
The exception thrown is:
Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name and, or one of its
dependencies, was not found
In the custom action project, I've overridden both Install and Commit. The
commit section is the method that does the actual work. We placed message
boxes at the top
of each function to attempt to see where the failure occurred. We see the
"Reached Install" message but not the Commit. By attaching to the process
I've also confirmed that the call to base.Install(stateSaver) is called and
does not throw the exception. So somewhere after base.Install(stateSave)
and the entry into Commit the error mentioned above is thrown. If the .msi
is launched from MyInstallFolder\SetupDir all is fine. Not sure where to go
with this at this point. Help would be appreciated.
public override void Install(IDictionary stateSaver)
{
MessageBox.Show("Reached Install");
base.Install (stateSaver);
}
public override void Commit(IDictionary savedState)
{
MessageBox.Show("Reached Commit");
base.Commit (stateSaver);
rest of code....
}