Getting Started Creating a Setup Proje ct in C#.NET

Creation QR Code ISO/IEC18004 in C#.NET Getting Started Creating a Setup Proje ct
Getting Started Creating a Setup Proje ct
QR Code ISO/IEC18004 Generator In C#.NET
Using Barcode creation for Visual Studio .NET Control to generate, create QR-Code image in .NET framework applications.
version of the installer de nition speci c to the DSL being authored, the WiX generation templates, and build rules to process the generated WiX les to create the Windows installer package The remainder of this chapter describes the use of the DSL Setup project and the DSL Tools Installer De nition language
Generating Barcode In C#.NET
Using Barcode generation for Visual Studio .NET Control to generate, create barcode image in VS .NET applications.
Getting Started Creating a Setup Project
QR Code ISO/IEC18004 Generation In VS .NET
Using Barcode generation for ASP.NET Control to generate, create QR Code 2d barcode image in ASP.NET applications.
To recap, a DSL author works in a Visual Studio solution, which has two projects: the DslPackage project and the Dsl project When F5 is pressed, the projects are built and a debugging session is launched in which the generated designer can be exercised in an instance of the experimental version of Visual Studio In order to generate the installation les for deploying the designer, it is necessary to create a third project This is created using the Domain-Speci c Language Setup Visual Studio project template Select the solution node in the solution explorer and select Add New Project from the context menu Choose the Domain-Speci c Language Setup template, which can be found under the Extensibility category, and give the project a name, as illustrated in Figure 9-2
QR Code ISO/IEC18004 Creator In Visual Studio .NET
Using Barcode printer for Visual Studio .NET Control to generate, create Quick Response Code image in .NET framework applications.
Figure 9-2: Selecting the Domain-Specific Language Setup project template
Printing QR Code ISO/IEC18004 In VB.NET
Using Barcode generation for VS .NET Control to generate, create QR image in .NET framework applications.
9: Deploying a DSL
Encoding Bar Code In Visual C#.NET
Using Barcode encoder for .NET framework Control to generate, create barcode image in Visual Studio .NET applications.
Click OK, and after a short delay a setup project will have been added to the solution, with contents such as those illustrated in Figure 9-3
Bar Code Creator In C#.NET
Using Barcode generation for .NET Control to generate, create bar code image in Visual Studio .NET applications.
Figure 9-3: Contents of the DSL Setup project
Creating ANSI/AIM Code 39 In Visual C#.NET
Using Barcode generation for VS .NET Control to generate, create ANSI/AIM Code 39 image in .NET applications.
Building this solution results in a set of installation les being generated in the bin directory, as illustrated in Figure 9-4 The bin directory is the output directory of the project (con gured through the project properties), and is where the project build action places all the les it creates There are two Microsoft Installer (msi) les The DSLToolsRedistmsi is the DSL Tools Redistributable, which is common to all designers and contains all the components required for a designer to run on a machine with Visual Studio Standard or later installed (see, however, the section Package Load Key ) The redistributable components include the DSL Tools DLLs, on which the designer depends, and the components required to execute text transformations The DSL Tools Redistributable does not include the components required for authoring DSLs, such as the DSL designer The other msi (IssueStateModelsmsi, in this case) contains all the components of the speci c designer to be installed The setupexe le is used to launch the installation process on a DSL user s machine, the settingsini le is a con guration le used by setupexe, and Readmehtm is an optional Readme le that accompanies all the other installation les
Make Code 128 Code Set B In Visual C#.NET
Using Barcode generation for .NET Control to generate, create Code128 image in Visual Studio .NET applications.
Getting Started Creating a Setup Proje ct
ECC200 Drawer In Visual C#.NET
Using Barcode creator for .NET Control to generate, create Data Matrix image in VS .NET applications.
Figure 9-4: Result of building the setup project
Scan Bar Code In VS .NET
Using Barcode scanner for Visual Studio .NET Control to read, scan read, scan image in Visual Studio .NET applications.
Copying the installation les onto another machine and launching setupexe will cause the DSLToolsRedist to install, if it has not been installed already Then an installation wizard is launched for installing the designer, as illustrated in Figure 9-5
Encode Bar Code In .NET Framework
Using Barcode maker for ASP.NET Control to generate, create barcode image in ASP.NET applications.
Figure 9-5: Installation wizard
Make Bar Code In .NET Framework
Using Barcode creation for .NET framework Control to generate, create bar code image in .NET framework applications.
9: Deploying a DSL
Painting Data Matrix 2d Barcode In .NET Framework
Using Barcode generation for ASP.NET Control to generate, create ECC200 image in ASP.NET applications.
If the prerequisites for the designer installation are not met, for example, if Visual Studio is not installed, then an error message is raised and the designer is not installed If this doesn t occur, once the wizard has been completed, the designer is installed and entries for both the DSL Tools Redistributable and the designer appear in the Control Panel>Add or Remove Programs dialog
Code 3/9 Creator In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create USS Code 39 image in ASP.NET applications.
Setup Project Contents
Read UPC-A Supplement 5 In Visual Studio .NET
Using Barcode recognizer for VS .NET Control to read, scan read, scan image in Visual Studio .NET applications.
The setup project contains: A dslsetup le A set of text templates, all with extension tt A settingsini le A Stringswxl le A folder Files, containing ancillary installation les, such as Readmehtm and license agreement A folder Resources, containing resources used by the installation wizard UI The dslsetup le contains information about the components to be installed It is speci c to the installation of DSL designers; it is not a format for creating the installation les for any Windows application The text templates take information from this le and generate WiX les WiX was introduced earlier The information contained in the dslsetup le generated by application of the DSL Setup project template is speci c to the DSL being authored This book is not the place to go into the details of project template authoring in Visual Studio, but at a high level the template contains custom code that scours the solution to which it is being added to nd the dsl le in the Dsl project and use the information contained there to prime the dslsetup, setupini, and Stringswxl les that it generates When the setup project is built, the WiX les generated from the dslsetup le are processed by the WiX tools, which generate the msi le for installing the designer This is copied to the output directory, together with DSLToolsRedistmsi and setupexe, both of which are copied onto
Code 39 Extended Scanner In VS .NET
Using Barcode reader for VS .NET Control to read, scan read, scan image in Visual Studio .NET applications.
Code-39 Printer In Java
Using Barcode creation for Java Control to generate, create Code 39 Full ASCII image in Java applications.
Generate ANSI/AIM Code 128 In Visual Basic .NET
Using Barcode creation for .NET framework Control to generate, create Code128 image in .NET framework applications.