You must Sign In to post a response.
  • Category: .NET

    How do Deployment windows application


    Are you looking for a information on Deployment of windows application ? then read this thread to know more about it



    Hi Friends
    I want to deploy my project.can any one guide me friends.
  • #725504
    Try with the below link . http://www.codeproject.com/Articles/196537/Deploying-Windows-applications-using-ClickOnce-Vis

    in case unable to do .Let me know . Will help you by taking remote .As by written it would be little difficult to explain.

    Regards
    Rakesh Chaubey
    rakeshchaubey1989@gmail.com

  • #725507
    [Response removed by Admin. Read forum policies.]

  • #725510
    Hi

    Yo need to create setup file for your application to deploy. Follow the below steps or refer my article

    1) Select Add->New Project -> select Other Project Type set up and deployment

    2) Choose setup file in Solution Explorer right click then choose view -> File System

    3) In the Application folder choose right click add --> File and choose your .mdb database add it. Along with before you add your project .exe file (or) Primary output of the file (if your databse is access then use this step)

    4) If you need shortcut for set up file then right of primary out file and create short cut and cut this shortcut select user desktop option and paste it rename it.

    5) Again right click and create another one short cut in the Application then paste it in USer's Programs menu (create one folder and place it)

    6) Rebuild set up file and try it install
    Further more details with step by step screen shot refer my resource
    http://www.dotnetspider.com/resources/43059-How-Create-Setup-file-for-NET-windows.aspx

    Regards
    N.Ravindran
    Your Hard work never fails

  • #725513
    Hi navaneethakrishnan ,

    Please go through with below link.
    It will help you to deploy ur Windows application.


    http://www.codeproject.com/Articles/146626/Extending-Visual-Studio-Setup-Project

    Regards,
    Lakshmi

  • #725532
    Dear Navaneetha krishnan,
    Please see the below link:
    http://msdn.microsoft.com/en-us/library/ms953320.aspx
    Happy coding.

  • #725573
    There are basically different ways of deployment techniques found for windows based appliction
    1. Setup project
    2. Inno Setup
    3. Click once deployment

    you can get more information on following link
    http://msdn.microsoft.com/en-us/library/wh45kb66(v=vs.90).aspx

    http://stackoverflow.com/questions/2173336/how-to-deploy-a-windows-form-application-including-database-to-another-pc

    http://www.codeproject.com/Articles/196537/Deploying-Windows-applications-using-ClickOnce-Vis

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #725594
    Hello,

    Types of Setup projects

    • The Setup Project creates a Windows Installer project for a Windows-based application.
    • The Web Setup Project creates a Windows Installer Web project to which files can be added manually during the development process.
    • The Merge Module Project packages components that might be shared by multiple applications.
    • The Setup Wizard assists developers step by step during the creation of a setup project.
    • The Cab Project prepares a cabinet file for downloading to a legacy Web browser.
    Steps for Windows Application

    Take a Setup project from Visual Studio Deployment Projects. By default you will get.
    File System on Target Machine
    Different Editors in Setup project

    1. File System on Target Machine.
    2. Registry on Target Machine
    3. File Types
    4. User Interface
    5. Custom Actions
    6. Launch Conditions

    In File System on Target Machine. We will find
    Application Folder, Users Desk Top and Users Programs Menu

    These all are General folders
    Application Folder: This is where we need to copy all exe and dependencies of the application these will directly copied to Client machine Installation folder.
    For adding application exe just right click on Application Folder area and Select Project Out put and for any Assemblies right click select Assembly it will show all Public Assemblies.
    Users Desk top: In any Situation placing Short cuts or any files in Users Desk top Just drag file from Application Folder for placing Application short cut First select Application Project Output file in that right click for Options and Select Create Short cut Option it will create a short cut and Select Shortcut file and Set appropriate prop's.
    Users Programs Menu: This also place for adding Short cuts and read me files and Product documentations.

    It has numerous special folders and a provision for adding User defined folders.

    Registry on Target Machine:

    In this it will show all Root Registry Key's and it will provide a provision for adding a Key and Value at any place. This will add these keys in client machine directly.

    File Types:

    Use this editor to add file types and actions to apply to these file types, which are defined by their extension. For example, in the following figure, the file type FGG (with extension .fgg) that will have the action Open is defined.

    User Interface:

    Use this editor to tailor the appearance of the setup application. These settings can hide some screens from the setup wizard or can add more screens from a collection of template styles. In the following figure, you can see that it is possible to define which texts to show or specific parts of the wizard

    Here Install and Administrative Install we need to set props for Install.
    By default u will get Welcome, Installation Folder, Confirm Installation, progress, and Finish Screens.

    Custom Actions:
    Use this editor to specify which programs to execute when a specific action has been selected. This feature can be very useful to install further components or to create specific database objects. These actions can run under specific events, such as:
    • Install the application
    • Commit
    • Rollback the installation
    • Uninstall the application

    Launch Conditions

    Use this editor to specify which conditions to check on the target machine.

    Validations can include file search, registry search, Component search or a particular deployment condition. Consider Display 4 where I added a Launch Condition and set the property condition as "PhysicalMemory>5000" i.e. 5GB and gave a custom error message "Physical Memory is less than 5GB." After the build when I tried to install it gave me error message as shown in Display 5 and cancelled the installation process, obviously my system had less than 5GB HD space and condition evaluated to false.

    Note: For List of properties available go to MSDN help and search on Property Reference. There is a launch condition "MsiNetAssemblySupport" by default. This can be removed if computer on which your application is being installed does not support CLR.

    Some Important Props in Setup Project

    After completion of the project preparation Select project and press F4 in the property window mainly set Manufacturer and Project name.

    The one sticking point to all of this has been updating the installer version with each build. A Windows Installer MSI includes three GUIDs which identify the application being installed:
    1. Upgrade Code - This identifies the application and should not change through it's lifetime
    2. Package Code - This identifies a particular version of the MSI installer and should never be reused across builds. It must always be updated.
    3. Product Code - This identifier is used to ID a particular version of the application. It is up to the installer author to decide when to assign a new product code. MSDN gives the example that in case where changes to the product are "relatively" minor; a new product code does not need to be assigned.
    This tool can be used to update each of these values separately by passing it a GUID for the desired code. By default, it will generate a GUID to use for both the product and package values, and will not modify the upgrade value.




    Files Created in Setup project
    YourSetupProgram.msi
    This file is the installer database required by Windows Installer to setup your application.
    This file is the only one to distribute if the target system has Windows Installer already installed. However, it is recommended to distribute the entire set of files to make sure that the program can be installed if Windows Installer is not present.
    InstmsiA.exe
    This program installs Windows Installer in Windows 95/98/Me.
    InstmsiW.exe
    This program installs Windows Installer in Windows NT/2000/XP/.NET.
    Note that Windows 2000, XP, and Microsoft Windows Server 2003 already include Windows Installer, but this distribution file might contain a newer version.
    setup.exe
    This application executes Windows Installer to install your application using the provided .msi file
    This program checks that Windows Installer is available in the system, will install it if required, and then install the application.
    Setup.ini
    This file is the configuration file used by setup.exe to point to the .msi file

    Regards,
    Dhiraj C. Solanki


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.