Application Readiness missing... help me

Application Readiness missing... help me

Hi... I've created applications with Visual Studio 2008. I need to done my preprocesses of my application. I need to know about 1. How to make msi file? 2. How to add icon to my exe? 3. How to create shortcuts? 4. Where to put my GUID? That means am i need to put that code in setup & deployment when creating MSI. Plz don't think it's a list! It's urgent. Help is very much appreciated.
11 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Muthuaja,

I published a very detailed blog answer on how to create an MSI and shortcuts. It is awaiting moderation, so keep refreshing the blog page for your answer: http://appdeveloper.intel.com/en-us/blog

Here is the content of that blog entry in the meantime:

So you want to create an MSI installer...

As we know from reading the Application Packaging Requirements Guide (http://appdeveloper.intel.com/en-us/article/packaging-requirements), we must provide our entry in a MSI format for Windows entries. I have received numerous requests for assistance in doing this. Here is a simple step by step to create your MSI installer.

Step 1 Create a Setup & Deployment Project

Let's create our new project. Right click on your solution in the Solution Explorer on the right hand side of your 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

Another requirement is to include a shortcut to our application. 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 5 C++ Runtime (CRT)

This step is critical for validation. The ATOM SDK requires the C++ Runtime to execute. 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 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.

IMPORTANT DETAILS ON SILENT INSTALL REQUIREMENT

One critical requirement in the validation process is that your MSI installed silently. You can test this by opening a command prompt, and executing your MSI using the /qn switch.

Example: c:\MyApp.msi /qn

If it installs without displaying any user interface, you have succeeded in this part of the validation

* Note: The use of the /qn switch has not been confirmed by Intel yet.

If you have any problems please do not hesitate to ask. Best of luck!

ok friend... I'll let you know after done all these things man...

Hi Brown... I have a problem on Step 3:

That is, when i choose Add -> Project Output i can't fine my primary output. I can't find my exe file.

Muthuraja,

1.) Ensure your project is included in the same solution as the new Setup and Deployment project

2.) Ensure that you have selected your project from the drop down at that point. Then simply choose "Project Output".

* When the Setup and Deployment project is built, it will include the .exe automatically.

Hi Muthuraja & Brown...

I also have that problem on step 3.

I can't find any files there. I used Visual Studio 2008. Need to make my MSI. Help should be appreciated.

Can you please tell me how to build my solution from VS2008. Is there any special things i need to do?

Have you added the Setup and Deployment project to the same solution as your application project already belongs? This is the key in both your cases I believe.

Hi Brown... Thanks for your reply. I made a mistake. I found my exe on primary output. & I need to clear one more doubt.

I can't find the context menu by the Step 4:

Sorry for annoying you! Plz reply me.

Use WiX to crate MSI based installations. WiX is a toolset and some kind of wrapper on MSI. You can download it here http://wix.sourceforge.net/. Dwnload and install WiX and Project Aggregator (VS project templates)

Useful, step by step toturial can be found here http://www.tramontana.co.hu/wix/

Dinesh,

In step 4, make sure you click on the Application Folder node (which is under the File System On Target Machine node)in the left pane. Then click anywhere in the empty right hand pane. Please report back if you have any trouble. If I could post images here to show you I would.

Leave a Comment

Please sign in to add a comment. Not a member? Join today