Por favor véase el tutorial siguiente:
http://msdn.microsoft.com/es-es/library/49b92ztk.aspx
Mi problema es el siguiente: si creo el Instalador de la base de datos tal como explica el manual en lenguaje VB.Net no tengo ningún problema, pero su lo creo en C# no funciona.
Lo he probado varias veces y repasado la instalación del instalador otras tantas veces, pero no logro que funcione.
Adjunto los 2 proyectos en VB y C# disponibles para que algún experto los vea y descubra lo que ocurre pues a mí me falta experiencia por lo visto. No logro entender lo que ocurre.
Ambos proyectos se compilan y ejecutan perfectamente sin ningún error, pero el proyecto en VB crea la base de datos "TRIPOLIS" y el proyecto en C# no la crea.
Espero que haya alguien que me eche una mano.
Gracias
-------------------------------------------------------------------------------------------
Translated into English
Please see the following link:
http://msdn.microsoft.com/es-es/library/49b92ztk.aspx
I have the following problem: If I build the Installer for the database as explained
VB.Net language manual I have no problem, but if I build it in C # does not work.
I tried several times and reviewed the installation of the installer so many times, but can not get work.
Attached are 2 projects in VB and C # available for an expert to see and discover what happens because I lack experience apparently. I do not understand what is happening.
Both projects are compiled and run perfectly without any error, but the project in VB creates the database "TRIPOLIS" and the project in C # do not create it.
I hope that someone can help me.
thanks
Loading
Guest UserPosted Aug 4, 2011, 3:12 PM
---------------------------------------------------------------------------------------------------
All I had to do to get this working was add the custom action project output to the Application folder in the Install node. It wasn't there previously.
Isidro PadillaPosted Aug 4, 2011, 8:01 PM
Adjunto nuevos fuentes.
John Penn thank you very much for your help because this is the right solution. I thought I had the installation successful, but certainly I had made a typical mistake of beginners.
Atatched news sources.
Now it is working and me happy.
ipadillar
Isidro PadillaPosted Aug 4, 2011, 3:15 PM
Te estoy muy agradecido.
saludos
Isidro PadillaPosted Aug 4, 2011, 3:09 PM
Creo que lo he hecho varias veces, pero voy a comprobarlo de nuevo y te comunicaré el resultado.
muchas gracias por tu respuesta.
ipadillar
Guest UserPosted Aug 4, 2011, 1:18 PM
Para crear la acción personalizada
Seleccione el proyecto DBCustomAction_Setup en el Explorador de soluciones. En el menú Ver, elija Editor y, a continuación, haga clic en Acciones personalizadas.
En el Editor de acciones personalizadas, seleccione el nodo Instalar. En el menú Acción, haga clic en Agregar acción personalizada.
En el cuadro de diálogo Seleccionar elemento en el proyecto, haga doble clic en la Carpeta de la aplicación.
Seleccione Resultado principal de DBCustomAction (Active), luego haga clic en Aceptar para cerrar el cuadro de diálogo.
--------------------------------------------------------------------------------
You missed this part of the tutorial:
To create a custom action
Select the DBCustomAction_Setup project in Solution Explorer. On the View menu, point to Editor, and then click Custom Actions.
In the Custom Actions Editor, select the Install node. On the Action menu, click Add Custom Action.
In the Select item in project dialog box, double-click the Application Folder.
Select Primary output from DBCustomAction (Active), then click OK to close the dialog box.