-
Application Installation
Hello
I need to develop a application which whenever installed on other machine creates a MSDE database , Please let me know in which part of the program the code to create the database has to be written , I don't need the code but the location where it has to be.
-
What you need is "Custom Actions".
I assume that you have added a deployment project to your solution? If so, select the deployment project in the solution explorer then open the Custom Actions editor from the View\Editors menu.
You will see a tree (Install, Commit, Rollback, Uninstall). Right click on Install and add a custome action. This action can be an exe or script that creates the MSDE database.
Hope this helps.
-
Thanks for the reply
I know the code to create a MSDE database in VB.NET , if it is a procedure then how can I call that procedure of that project to execute when the ( after Setup & Development actions ) application is installed on other machines.
-
You have to create and add another exe (e.g. InstallMSDE.exe) to your solution. You specify this executable as the target for your Custom Action and it will run after everything else has been installed. Put your code for creating the database in InstallMSDE.exe.
-
Thanks for the reply
How to add the console command in the install option of the customs action such that it can be executed while the application is installed.
-
-
Here is another way.
select you deployment and installation project, open the file system and select application folder.
Right click and take the add option.
This allows you to create sub folders beneath yoou application path and add files to be copied.
Yes this can be a database and it will copy that in for you.
I assume you have a bkank (i.e.no records version) to copy in.
The read only attribute is set to false so its alll set up and ready for them to use.