rossellag
12-06-2012, 06:16 AM
Hello,
I'm trying to create a setup for a Visual Studio Project.
In this setup I must:
1) create a folder if it isn't exist
2) execute sql script that create a database saved in the folder created at point1.
My problem is at point1. I use Custom Action and I create "New Managed Code" (Stored In Binary Table) to call a c# dll (CreateFolder.dll).
This dll utilize the following method:
public void CheckFolder()
{
string path = "C:\\Db";
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
}
I set my Custom Action as follows:
- Assembly file: <PATH_TO_DEBUG_FILES>\CreateFolder.dll
- Method Signature: CreateFolder.Class1.CheckFolder()
- Install UI Sequence and Install Exec Sequence: <First Action>
I build the setup but when I run it an error occurred. This is error 2731: Selection Manager not inizialized.
What's going on? What's wrong?
I'm trying to create a setup for a Visual Studio Project.
In this setup I must:
1) create a folder if it isn't exist
2) execute sql script that create a database saved in the folder created at point1.
My problem is at point1. I use Custom Action and I create "New Managed Code" (Stored In Binary Table) to call a c# dll (CreateFolder.dll).
This dll utilize the following method:
public void CheckFolder()
{
string path = "C:\\Db";
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
}
I set my Custom Action as follows:
- Assembly file: <PATH_TO_DEBUG_FILES>\CreateFolder.dll
- Method Signature: CreateFolder.Class1.CheckFolder()
- Install UI Sequence and Install Exec Sequence: <First Action>
I build the setup but when I run it an error occurred. This is error 2731: Selection Manager not inizialized.
What's going on? What's wrong?