HOW TO: Creating your MSI installer using Microsoft Visual Studio* 2008
2014-02-12 15:53
453 查看
Quote from:
http://software.intel.com/en-us/articles/how-to-creating-your-msi-installer-using-visual-studio-2008
Let's create our new project. Right click on your solution in the Solution Explorer on the right hand side of your Microsoft Visual Studio* IDE and select Add -> New Project. From the list of project types, choose Other Project Types -> Setup and Deployment -> Setup Project.
Step 2 Setup Properties
We would like everyone to know who created this installer. Click on your new Setup and Deployment project in the solutions explorer. Now you will see in the Properties windows (Just below the Solutions Explorer usually), settings for Manufacturer, Author, and Title. Fill these in as appropriate.
Step 3 Add Project Output & Content
We want to include our project .exe and all required content files. Right click on your Setup and Deployment project in the Solution Explorer and choose View -> File System. Right click on the Application Folder node and choose Add -> Project Output. Choose Primary Output, this will include your .exe. Repeat this step and choose Content Files if your project has required content such as images, audio, etc.
* Special Note: In your Application project, ensure all required files are marked as Content. This can be done by selecting the file in the Solution Explorer and setting the Content property to True.
We need to include our icon to use in our shortcut later. Right click on the Application Folder node and choose Add -> File. Browse to your icon file and click OK.
Step 4 Create Shortcuts
Having shortcuts in the app significantly improves user experience. It's best to have the app easily accessible to the end user. This can be done with various shortcuts on the device. Fortunately this is quite simple. With the Setup and Deployment File System tab still open, right click in the right hand pane to bring up a context menu. Choose Create New Shortcut. From this dialogue, navigate into the Application Folder, and choose Primary Output from "Project name" (Active). This will point the shortcut to your .exe. Click OK to accept this selection.
Let's give that shortcut an icon as well. Click on the shortcut you just created in the right hand pane. From the Properties window you may select an icon. Click Browse, and navigate to the Application Folder, and select the icon you added to the File System back in Step 3.
If you wish to have a shortcut in the users Start Menu, repeat the steps above, substituting the User's Programs Menu node instead of User's Desktop node.
Step 5a C++ Runtime (CRT) for apps using C++ SDK
Some apps require the C++ Runtime to execute, please include this if needed. Fortunately our Setup and Deployment project makes this an easy addition. Right click on your Setup and Deployment project in the Solution Explorer and choose Add -> Merge Module. You want to add two merge modules, one for CRT Release, and one for CRT Debug. These are labeled:
Microsoft_VC90_CRT_x86.msm
Microsoft_VC90_DebugCRT_x86.msm
* Special Note: If your application requires additional merge modules or runtime that is not automatically detected, this would be the time to add them.
Step 5b Additional Include files for apps using .NET SDK
If you are using .NET SDK, you don't need the CRT files as shown above in step 5a. However, you need to make sure you app is compiled for .NET framework 3.5.
Your additional include files MAY look like the image below.
Step 6 Build
The easiest part of this exercise. Right click on your Setup and Deployment project and choose Build. If all went well, you will have a nicely packaged MSI in your output folder ready to upload to the App Store.
DETAILS ON SILENT INSTALL REQUIREMENT
Good user experience is minimizing user input. If the app can install without interaction, it is often much cleaner and simpler. Intel AppUp® center validation does not require silent installs, but it can easily be done.
You need remove the following dialogs from your project.
Example:
If it installs without displaying any user interface, you have created a silent install. Windows* UAC and progress install bar is part of the silent install category.
You will need to delete some dialogs in your project.
If you have any problems please do not hesitate to ask. Best of luck!
http://software.intel.com/en-us/articles/how-to-creating-your-msi-installer-using-visual-studio-2008
So you want to create an MSI installer...
Step 1 Create a Setup and Deployment ProjectLet's create our new project. Right click on your solution in the Solution Explorer on the right hand side of your Microsoft Visual Studio* IDE and select Add -> New Project. From the list of project types, choose Other Project Types -> Setup and Deployment -> Setup Project.
Step 2 Setup Properties
We would like everyone to know who created this installer. Click on your new Setup and Deployment project in the solutions explorer. Now you will see in the Properties windows (Just below the Solutions Explorer usually), settings for Manufacturer, Author, and Title. Fill these in as appropriate.
Step 3 Add Project Output & Content
We want to include our project .exe and all required content files. Right click on your Setup and Deployment project in the Solution Explorer and choose View -> File System. Right click on the Application Folder node and choose Add -> Project Output. Choose Primary Output, this will include your .exe. Repeat this step and choose Content Files if your project has required content such as images, audio, etc.
* Special Note: In your Application project, ensure all required files are marked as Content. This can be done by selecting the file in the Solution Explorer and setting the Content property to True.
We need to include our icon to use in our shortcut later. Right click on the Application Folder node and choose Add -> File. Browse to your icon file and click OK.
Step 4 Create Shortcuts
Having shortcuts in the app significantly improves user experience. It's best to have the app easily accessible to the end user. This can be done with various shortcuts on the device. Fortunately this is quite simple. With the Setup and Deployment File System tab still open, right click in the right hand pane to bring up a context menu. Choose Create New Shortcut. From this dialogue, navigate into the Application Folder, and choose Primary Output from "Project name" (Active). This will point the shortcut to your .exe. Click OK to accept this selection.
Let's give that shortcut an icon as well. Click on the shortcut you just created in the right hand pane. From the Properties window you may select an icon. Click Browse, and navigate to the Application Folder, and select the icon you added to the File System back in Step 3.
If you wish to have a shortcut in the users Start Menu, repeat the steps above, substituting the User's Programs Menu node instead of User's Desktop node.
Step 5a C++ Runtime (CRT) for apps using C++ SDK
Some apps require the C++ Runtime to execute, please include this if needed. Fortunately our Setup and Deployment project makes this an easy addition. Right click on your Setup and Deployment project in the Solution Explorer and choose Add -> Merge Module. You want to add two merge modules, one for CRT Release, and one for CRT Debug. These are labeled:
Microsoft_VC90_CRT_x86.msm
Microsoft_VC90_DebugCRT_x86.msm
* Special Note: If your application requires additional merge modules or runtime that is not automatically detected, this would be the time to add them.
Step 5b Additional Include files for apps using .NET SDK
If you are using .NET SDK, you don't need the CRT files as shown above in step 5a. However, you need to make sure you app is compiled for .NET framework 3.5.
Your additional include files MAY look like the image below.
Step 6 Build
The easiest part of this exercise. Right click on your Setup and Deployment project and choose Build. If all went well, you will have a nicely packaged MSI in your output folder ready to upload to the App Store.
DETAILS ON SILENT INSTALL REQUIREMENT
Good user experience is minimizing user input. If the app can install without interaction, it is often much cleaner and simpler. Intel AppUp® center validation does not require silent installs, but it can easily be done.
You need remove the following dialogs from your project.
Example:
c:\MyApp.msi /qn
If it installs without displaying any user interface, you have created a silent install. Windows* UAC and progress install bar is part of the silent install category.
You will need to delete some dialogs in your project.
If you have any problems please do not hesitate to ask. Best of luck!
相关文章推荐
- Setting environment for using Microsoft Visual Studio 2008 x86 tools出现此时不应有的解决办法
- Automating Excel 2007 and creating charts using C++ MFC application in Visual Studio 2008
- Creating a PHP Extension for Windows using Microsoft Visual C++ 2008
- Microsoft Visual Studio 2008序列号
- Microsoft Visual Studio 2005/2008/2010快捷键
- How to: Run Tests from Microsoft Visual Studio
- 使用Microsoft® Visual Studio® 2008解决软件开发中的挑战-Office 开发
- 如何避免在安装SQL SERVER 2008时,出现Rule “Previous releases of Microsoft Visual Studio 2008″ failed.
- Microsoft Visual Studio 2008 未能正确加载包“Visual Web Developer HTML Source Editor Package” | “Visual Studio HTM Editor Package”
- 用Microsoft Visual Studio 2008发布应用程序
- Visual Studio 2008 Package Load Failure:未能正确加载包“Microsoft.VisualStudio.Xaml”
- Microsoft Visual Studio 2008 SP1 简体中文版 安装图集
- Microsoft Visual Studio 2008 破解
- 去除Microsoft Visual studio 2008 beta2的过期限制
- Microsoft Visual Studio Team System 2008 中的本地负载测试
- Microsoft Visual Studio 2008 使用水晶报表(CrystalReport)
- 在安装SQL Server的时候提示 Microsoft visual studio 2008 早期之前的版本 报错 解决办法
- Microsoft 预发行软件 Visual Studio Team System 2008 测试版 2 Team Suite [下载地址]
- Upgrade Microsoft Visual Studio 2008 to the SP1 before installing SQL Server 2008.
- Microsoft Visual Studio 2008 在文件中查找 失效的解决方法