Installing my program on Windows CE 5 - c#

I'm in the progress of finishing up an application for Windows CE 5, and I was wondering what the easiest way of installing the application on CE 5 devices would be.
Hitting "publish" in VS8 generates an installer, but this installer isn't compatible with CE 5.
What is an easy, effective way of installing my applications on Windows CE 5?
Edit: Follow-up here.

The easy way is to just add a new Deployment project to your existing solution.
Right-Click your solution and pick Add > New Project
Go to Other Project Types, select the Smart Device CAB Project
Right click the new project, including all the files your project uses, then build it.
UPDATE:
Be sure to Add Project Output!

For windows CE and windows mobile applications use CAB file, in this link describe how to create CAB file.

Related

Develop applications for Windows Compact

I have an Windows Embedded Compact v8.00 device installed with build 6247. FYI - This device is an Siemens HMI.
Now I'm looking for the right way to develop applications for this version of Windows. I started trying with Visual Studio 2008, so I build a very simple application with just a useless textbox. After copying the executable to the device I start tried to run the test applications but nothing happens.
After searching the web I found out it's better to install Visual Studio 2015 PRO with an application builder from Microsoft's website.
Is this the right way to do? What else does I need to know when developing applications for Windows Compact 2013?
To create applications for Windows Embedded Compact 2013 you need VS2013 or VS2015 professional with the Application Builder plugin and a valid SDK installed on your PC.
If you develop managed apps you also need to check in the .NET runtime is already part of the image or find a way to deploy and install it permanently on your device (the way to do this may change depending on the device configuration, registry type etc.)

Why won't my program open on Pocket PC?

I am making a program in Visual Studio 2008 for my Pocket PC, but I can't get the program to open. I followed the instructions to create a cab file to install it on the device, but then when I try to click on the program its loads for half a second and then doesn't do anything. The program works fine in the emulator.
Are you really using a Pocket PC device? The Pocket PC terminology was last used in 2003. The platform has been called "Windows Mobile" since then. Not to be confused with "Windows 10 Mobile". Naming is not a strong point for Microsoft in this regard.
You need to use the Pocket PC SDK if you are truly developing for a Pocket PC.
If your application uses MFC then your program will depend on the MFC library to run. The simplest way to solve this problem is to link statically to MFC.
Go to the Project Settings
Go to the "General" tag page.
Search for "Use of MFC" and select "Use MFC in a static library".
Save & Rebuild the project. The size of your EXE is now larger because you have statically linked to MFC.
If your application uses Compact Framework then your program will also depend on the .NET Compact Framework (CF) library to run. The simplest way to solve this problem is to include the CAB file(s) from your Visual Studio folder. Then you can run the CAB file to install .NET Compact Framework.
Navigate to the "C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce400\armv4" folder.
Copy the "NETCFv2.ppc.armv4.cab" file to your device.
On the device, navigate to the NETCFv2.ppc.armv4.cab file and click on it to install.
You can read this for more information on the subject.

How to ship a Windows Forms application to a client without .NET?

This is about the deployment of a Windows Forms application. I have created a Windows Forms application, but I'm not sure if the users have installed .NET version 4. I have put my Windows Forms application at my website and the users will download it to their desktop.
How do I automate the process of downloading and installing .NET 4 if the users have not installed it? What are the recommended ways of deploying Windows Forms applications to users?
You could try ClickOnce.
ClickOnce deployment allows you to publish Windows-based applications to a Web server or network file share for simplified installation.
You just need to define which prerequisites you want to include in bootstraper, as described here
You could define prerequisites in your Setup And Deployment Project.
You need to provide an installer and mark .NET as a prerequisite. See Stack Overflow question How to make an installer for my C# application? (.NET 3.5, but the idea is the same).
You could always download and include the .NET 4 redistributable. It about 40 MB so it may not be the most optimal solution, but it may be the easiest for the client.

Change Application Folder Path of Windows CE Setup Project

I've created an application for Windows CE and I'm trying to create a setup project. I'm doing a silent update operation and need to install the .CAB files to a specific folder (\Program Files\abc\xx)
By default, it installs to \Program Files\Product Name
How can I make it to install on \Program Files\abc\xx ?
This was possible for windows installers but I guess not possible for Windows CE installers.
Thank you
You have to modify the INF file that CABWiz is using (specifically the InstallDir in the CEStrings section).
If you're using the Studio project that wraps this INF file, then you can't adjust it (one of the many shortcomings of the device CAB installer projects).

How to make generic installation for my program

How to make generic installation for my C# program, that will work on Win XP, Win 7 32bit and Win 7 64bit ?
I need that all the related components (like Framework... Crystal Reports...MDAC....) will be include and will install only the program that the OS is missing
Thanks in advance
What version of Visual Studio are you using? It matters, because if you're using Express, you're going to need a 3rd party tool If you're using Professional or higher, you can just create a Setup project as described here:
http://support.microsoft.com/kb/307353
if you weren't worried about required components, of course, you could just do an XCOPY deployment, but since you specifically need your prerequisites included with the install, you need to use a tool like the setup project 9which creates an MSI file) or using a third party tool like Installshield.
i think
1- Create 3 separate packages for (Win Xp,Win7-32 , Win7-64)
2- Ask user if user is downloading from the website and push require download from the server. Alternatively , you can write a samll silverlight based application to get the details of user machine.
3- If 2 point is not true than while installing on a user machine get the details first and choose manually which pakage to install.
why i am telling to create specific package because of Microsoft issues pathches time to time and you may need to change the package so keep it seperate will definately help you.

Categories

Resources