PC Review


Reply
Thread Tools Rate Thread

Building installers for PocketPC 2000 and PocketPC 2002 using Visual Studio .NET 2003

 
 
Antao Almada
Guest
Posts: n/a
 
      8th Sep 2004
In case you want to create a setup project for your .NET CF
application, take a look at:
http://www.wfu.edu/~rbhm/dotnetinstalls.pdf

Thanks Rob, you're a lifesaver... ;-)
 
Reply With Quote
 
 
 
 
Antao Almada
Guest
Posts: n/a
 
      9th Sep 2004
If your app uses the OpenNETCF library, you need to add the following
steps to the tutorial:

1. Add OpenNETCF cabs for your Windows CE 3.0 platforms. Right-click
on the Setup Project, View->File System. Right-click on "Application
Folder" and choose Add->File. Browse to C:\Program Files\Microsoft
Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\, add
"netcf.core.ppc3...cab" and "netcf.core.wce4...cab" for each
architecture. These are in the subdirectories of wce300 and wce400.
You should find 9 cab files.

2. Add .ini file for the PocketPC setup. Browse to your solution
directory outside of Visual Studio. Create a new text file called
"OpenNETCF.ini" and its contents should be as follows (needs no
modification):

[CEAppManager]
Version = 1.0
Component = OpenNETCF

[OpenNETCF]
Description = OpenNETCF Smart Device Framework
CabFiles = OpenNETCF.SDF.PPC3.ARM.CAB,OpenNETCF.SDF.PPC3.ARMV4.CAB,
OpenNETCF.SDF.PPC3.x86.CAB,OpenNETCF.SDF.WCE4.ARMV4.CAB,
OpenNETCF.SDF.WCE4.MIPSII.CAB,OpenNETCF.SDF.WCE4.MIPSIV.CAB,
OpenNETCF.SDF.WCE4.SH3.CAB,OpenNETCF.SDF.WCE4.SH4.CAB,
OpenNETCF.SDF.WCE4.X86.CAB

Once the file has been created, go back to Visual Studio, right-click
on "Application Folder" and choose Add->File. Browse to the Solution
directory, Click on OpenNETCF.ini and click "Open."

3. Now we need to let the installer know about these files. What we
need to do is to slightly change the Installer_AfterInstall event
handler of the Class1 in the Class Library. Replace it with the
following:

private void Installer_AfterInstall(object sender,
System.Configuration.Install.InstallEventArgs e)
{
// get full path to .ini file
string arg1 = Path.Combine(
Path.GetDirectoryName(
Assembly.GetExecutingAssembly().Location),
"Setup.ini");
string arg2 = Path.Combine(
Path.GetDirectoryName(
Assembly.GetExecutingAssembly().Location),
"Runtime.ini");
string arg3 = Path.Combine(
Path.GetDirectoryName(
Assembly.GetExecutingAssembly().Location),
"OpenNETCF.ini");
string arg = arg1 + "\" \"" + arg2 + "\" \"" + arg3;

// get path to the app manager
const string RegPath = @"Software\Microsoft\Windows\" +
@"CurrentVersion\App Paths\CEAppMgr.exe";
RegistryKey key =
Registry.LocalMachine.OpenSubKey(RegPath);

string appManager = key.GetValue("") as string;

if (appManager != null)
{
// launch the app
Process.Start(
string.Format("\"{0}\"", appManager),
(arg == null) ? "" : string.Format("\"{0}\"", arg));
}
else
{
// could not locate app manager
MessageBox.Show("Could not launch the WinCE
Application Manager.");
}
}

Good luck,
Antao

(E-Mail Removed) (Antao Almada) wrote in message news:<(E-Mail Removed)>...
> In case you want to create a setup project for your .NET CF
> application, take a look at:
> http://www.wfu.edu/~rbhm/dotnetinstalls.pdf
>
> Thanks Rob, you're a lifesaver... ;-)

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 & PocketPC 2002 Tim Microsoft Outlook Discussion 0 28th Dec 2004 06:10 AM
Creating applications for CE.net and Pocketpc 2002-2003 using C# Laery Microsoft Dot NET Compact Framework 4 12th Oct 2004 12:13 PM
Difference between Win CE and PocketPC 2002 0r PocketPC 2003 Joby Microsoft Dot NET Compact Framework 2 21st Jun 2004 05:03 PM
Installing emulator for PocketPC 2002 in VS.NET 2003 Jonas Microsoft Dot NET Compact Framework 0 7th May 2004 07:26 AM
programming C++ for pocketPC's on visual studio.net AJ Microsoft Dot NET Compact Framework 1 10th Dec 2003 08:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:48 AM.