Results 1 to 7 of 7

Thread: Application Installation

  1. #1

    Thread Starter
    Member
    Join Date
    May 2003
    Posts
    53

    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.

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    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.
    This world is not my home. I'm just passing through.

  3. #3

    Thread Starter
    Member
    Join Date
    May 2003
    Posts
    53
    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.

  4. #4
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    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.
    This world is not my home. I'm just passing through.

  5. #5

    Thread Starter
    Member
    Join Date
    May 2003
    Posts
    53
    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.

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Everything about Deploying a Windows Application .
    http://msdn.microsoft.com/library/de...pplication.asp

  7. #7
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width