If you give your configuration a new name, you may have to modify the settings in the Project Designer to target the correct platform. If you want to copy the settings from a current platform configuration, choose it, and then choose the OK button. The properties for all projects in your solution that target the bit platform are updated, and the next build of the project will be optimized for bit platforms. Visual Studio considers both project-level platforms and solution-level platforms, and the project platforms come from the language-specific project systems.
To see both project-level platform and solution-level platform settings, open Configuration Manager and note the two platform settings. The solution-level platform is shown in the Active solution platform dropdown, and the table shows the project-level platform for each project.
The Project Designer also provides a way to target different platforms with your project. If selecting one of the platforms included in the list in the New Solution Platform dialog box does not work for your solution, you can create a custom configuration name and modify the settings in the Project Designer to target the correct platform.
Performing this task varies based on the programming language you are using. See the following links for more information:. Sometimes, you need to manually edit the project file for some custom configuration. An example is when you have conditions that can't be specified in the IDE, such as a reference that is different for two different platforms, as in the following example.
You might have a. To set up your project to use these references, first add the reference, and then open the project file and edit it to add an ItemGroup with a condition that references both the configuration, and the target platform. For example, suppose the binary you are referencing is ClassLibrary1 and there are different paths for Debug and Release configurations, as well as x86 and x64 versions.
NET Framework. Let us look at these available templates from the picture below;. Setup Project Builds an installer for a Windows application, setup projects will install files into the file system of a target computer. In addition, a Setup Wizard is available to simplify the process of creating a Setup or Web Setup project. Builds an installer for a Web application, the files for a Web Setup Projects are installed into a Virtual Root directory on Web servers.
The distinction between Setup and Web Setup projects is where the installer will be deployed. A merge module. Merge modules cannot be installed alone, but must be used within the context of a Windows Installer. Merge modules allow you to capture all of the dependencies for a particular component, ensuring that the correct versions are installed. Much the same as dynamic-link libraries allow you to share code between applications; merge modules allow you to share setup code between Windows Installers.
Creates a CAB file for downloading to an earlier Web browser. Unlike the other deployment project types, there are no editors provided for working with Cab projects. Files and project outputs can be added to a Cab project in Solution Explorer, and properties can be set in the Properties window or in the Project Property pages. After the wizard has finished, now you have completed to create an installer for your application. Now save all changes and start to build your application, if building completed successfully, build the installer.
Go to where you have saved the solution and you will see an installer file inside the debug folder in your setup project directory. But I think this is not enough for you! You need to go deeper in customization, so follow me in the following issues:. The deployment editors are used to configure an installer that you create with a deployment project.
To open an editor, select a deployment project and the buttons will appear as shown below or alternatively, right-click your deployment project, point to View, and then click the name of the editor that you want to open. File system editor; When the project is added to the solution, the first thing to be displayed is the file system editor. The picture above shows file system editor. To put shortcut of your application in start menu or desktop go to application folder , right click on primary output from … Or any other files which you want to create shortcut for them , select create shortcut to… then the shortcut will appear, cut it and paste to the folder where you want a shortcut to appear.
Also you can add project outputs in the target folder using the same way explained below just select project output… instead of a file. The user interface editor helps you to customize the installation wizard interface. The Install section contains dialog boxes that will be displayed when the end user runs the installer; the Admin section contains dialog boxes that will be displayed when a system administrator uploads the installer to a network location.
The Registry Editor allows you to specify registry keys and values to be added to the registry of the target computer.
Playing with registry need more experienced person otherwise it may course some trouble in target computer, but you can add or remove keys according to what your project needs. To add a registry key select a top level node, in the action menu click new key , then type the new name and edit properties of the key in the properties window as necessary. To add a sub key select a key node, in the action menu point to new and then key and you can edit its properties from the properties window.
Also you can remove a key by selecting it and then click Delete from Edit menu. During installation the values will be written to the registry and any existing values will be overwritten by the values that you specify. Here you can specify additional actions to be performed on the target computer at the end of an installation. When these components are configured as installation components, they are wrapped in an installer class and are recognized by the deployment system as a custom action.
The editor contains four folders, each corresponding with a phase of installation: Install Commit, Rollback, and Uninstall which are run in the same order that they are displayed in the editor. To add custom actions first must be compiled as a. NET framework component and added to a project as a script or assembly before they can be added to a deployment project. Then right click on one of the four folders and chose Add custom action then select your item to be added.
This also adds the item to your project. To add a custom action to all four folders, select the Custom Actions node in the editor, and choose Add Custom Action. File Types editor allows you to specify document types and associate them with file extensions. In addition, you can specify the verbs or actions for each document type and specify MIME types for the document types for use in browsers. The File Types Editor contains a single pane with hierarchical list of file types and actions.
There are three steps involved in associating a file type with your application: adding a document type, associating a file extension, and associating an executable file. Then you can associate it with file extension by going to its properties and type the extension without precede it by a period separate multiple extensions by ;. Then you can set a command by selecting a. The Launch Conditions Editor allows you to specify conditions that must be met in order to successfully run an installation.
For example you may check for the OS version, windows installer components, registry key or even a file if it exists in a target machine. To add an item to search right click on Search Target Machine and then select an item you want to be searched in the target machine and then set its properties from the properties window.
The following pictures from MSDN summaries the properties available:. Choosing prerequisites to install: Sometimes your application may depend on components that must be available in target computer before the installation can take place.
Down the dialogue there is specify the install location for prerequisite , and three radio buttons are available: Details of Prerequisites This capability to automatically detect the existence of components during installation and install a predetermined set of prerequisites is referred to as bootstrapping and the component that performs it is called the generic bootstrapper which uses bootstrapper packages to install the prerequisite components on the target computer.
Creating installer for 64 bit platform: The deployment tools in Visual Studio allow you to create installers for bit applications and components. Publishing using ClickOnce for Setup Creating Publish properties can be set using the Publish Wizard but only a few of the properties are available in it, all other properties are set to their default values. Install mode and settings; First you have to say if the application is available offline or not online only.
If you have any other issues about this, we welcome you to ask questions in this forum. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Visual Studio General Questions. Sign in to vote. Tuesday, October 22, PM. This keeps everything cleaner.
0コメント