multi-platform install fails (ppc .net cf vs.net)

A

Anatoly

I am trying to put together a platform-independent (multi-cab) setup of a PPC application.
using Vs.net 2003, plus recommendations at this URL: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfdeployment.asp

The cab files and msi get built without any errors. When I run the install, it runs through desktop portion, then starts up the ActiveSync, which asks if I want to install into default directory, I say Yes, it then says that see instructions on PPC screen. The PPC screen says that "application ... was not installed successfully, please run setup again".

I left the vsd_setup.dll in the setup
a.. Ran "Build Cab File" to get initial xxxxx_PPC.INF and BuildCab.bat files.
b.. Created installer project and installer class.
c.. Tied the AfterInstall and AfterUninstall events to the methods provided in the above article
d.. Added cab files, and the setup.ini file to the build
e.. added CustomInstaller.dll into the setup
See the contents of mail files below....

However!, when I remove all references to all platforms other than AMR4, the setup starts to work fine. in other words if I leave just the platform ARM4-specific information in the INF file, only one cab (arm4), and in setup.ini. - then the install works ok.

Does any one know what I shoudl do to get this to work with multiple cabs in the package?


My final .INF is about like this:
[INF]
[Version]
Signature="$Windows NT$"
Provider="Company"
CESignature="$Windows CE$"

[CEStrings]
AppName="appname"
InstallDir=%CE1%\%AppName%

[CEDevice]
VersionMin=3.00
VersionMax=4.99

[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common

[DefaultInstall.ARMV4]
CopyFiles=Files.ARMV4
CESetupDLL=vsd_setup.dll

[DefaultInstall.ARM]
CopyFiles=Files.ARM
CESetupDLL=vsd_setup.dll

[DefaultInstall.SH3]
CopyFiles=Files.SH3
CESetupDLL=vsd_setup.dll

[DefaultInstall.MIPS]
CopyFiles=Files.MIPS
CESetupDLL=vsd_setup.dll

[DefaultInstall.X86]
CopyFiles=Files.X86
CESetupDLL=vsd_setup.dll

[DefaultInstall.WCE420X86]
CopyFiles=Files.WCE420X86
CESetupDLL=vsd_setup.dll

[SourceDisksNames]
1=,"Common1",,"C:\pocketpcapps\appname\obj\Release\"

[SourceDisksNames.ARMV4]
2=,"ARMV42",,"C:\pocketpcapps\appname\obj\Release\"
3=,"ARMV4_Setup",,"C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\ARMV4\"

[SourceDisksNames.ARM]
4=,"ARM4",,"C:\pocketpcapps\appname\obj\Release\"
5=,"ARM_Setup",,"C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\ARM\"

[SourceDisksNames.SH3]
6=,"SH36",,"C:\pocketpcapps\appname\obj\Release\"
7=,"SH3_Setup",,"C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\SH3\"

[SourceDisksNames.MIPS]
8=,"MIPS8",,"C:\pocketpcapps\appname\obj\Release\"
9=,"MIPS_Setup",,"C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\MIPS\"

[SourceDisksNames.X86]
10=,"X8610",,"C:\pocketpcapps\appname\obj\Release\"
11=,"X86_Setup",,"C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\X86\"

[SourceDisksNames.WCE420X86]
12=,"WCE420X8612",,"C:\pocketpcapps\appname\obj\Release\"
13=,"WCE420X86_Setup",,"C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\WCE420X86\"

[SourceDisksFiles]
appname.exe=1

[SourceDisksFiles.ARMV4]
vsd_config.txt.ARMV4=2
vsd_setup.dll=3

[SourceDisksFiles.ARM]
vsd_config.txt.ARM=4
vsd_setup.dll=5

[SourceDisksFiles.SH3]
vsd_config.txt.SH3=6
vsd_setup.dll=7

[SourceDisksFiles.MIPS]
vsd_config.txt.MIPS=8
vsd_setup.dll=9

[SourceDisksFiles.X86]
vsd_config.txt.X86=10
vsd_setup.dll=11

[SourceDisksFiles.WCE420X86]
vsd_config.txt.WCE420X86=12
vsd_setup.dll=13

[DestinationDirs]
Files.Common=0,%InstallDir%
Shortcuts=0,%CE2%\Start Menu
Files.ARMV4=0,%InstallDir%
Files.ARM=0,%InstallDir%
Files.SH3=0,%InstallDir%
Files.MIPS=0,%InstallDir%
Files.X86=0,%InstallDir%
Files.WCE420X86=0,%InstallDir%

[Files.Common]
appname.exe,,,0

[Files.ARMV4]
vsd_config.txt,vsd_config.txt.ARMV4,,0
vsd_setup.dll,,,0

[Files.ARM]
vsd_config.txt,vsd_config.txt.ARM,,0
vsd_setup.dll,,,0

[Files.SH3]
vsd_config.txt,vsd_config.txt.SH3,,0
vsd_setup.dll,,,0

[Files.MIPS]
vsd_config.txt,vsd_config.txt.MIPS,,0
vsd_setup.dll,,,0

[Files.X86]
vsd_config.txt,vsd_config.txt.X86,,0
vsd_setup.dll,,,0

[Files.WCE420X86]
vsd_config.txt,vsd_config.txt.WCE420X86,,0
vsd_setup.dll,,,0

[Shortcuts]
appname,0,appname.exe,%CE11%

The BuildCab.bat file has this:

"C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\..\bin\..\bin\cabwiz.exe" "C:\pocketapps\appname\BuildCabs\appname_PPC.inf" /dest "C:\pocketapps\appname\BuildCabs\cabs" /err CabWiz.PPC.log /cpu ARMV4 ARM SH3 MIPS X86 WCE420X86

The Setup.INI that went into setup (for ActiveSync's use) was this:
[CEAppManager]
Version = 1.0
Component = App

[App]
Description = Rudeo Pocket DJ
CabFiles = appname_PPC.X86.CAB,appname_PPC.ARM.CAB,appname_PPC.ARMV4.CAB,appname_PPC..MIPS.CAB,appname_PPC.SH3.CAB,appname_PPC.WCE420X86.CAB
 
A

Anatoly

Does anyone at Microsoft know the best way to address this issue?

is it best to just make separate setup files for each platform? If
yes, then what is the best way to make it easy for users to determine
which platform download is right for their Pocket PC device?

-Anatoly


Anatoly said:
I am trying to put together a platform-independent (multi-cab) setup of
a PPC application.
using Vs.net 2003, plus recommendations at this URL:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetc
omp/html/netcfdeployment.asp

The cab files and msi get built without any errors. When I run the
install, it runs through desktop portion, then starts up the ActiveSync,
which asks if I want to install into default directory, I say Yes, it
then says that see instructions on PPC screen. The PPC screen says that
"application ... was not installed successfully, please run setup
again".

I left the vsd setup.dll in the setup
a.. Ran "Build Cab File" to get initial xxxxx PPC.INF and BuildCab.bat
files.
b.. Created installer project and installer class.
c.. Tied the AfterInstall and AfterUninstall events to the methods
provided in the above article
d.. Added cab files, and the setup.ini file to the build
e.. added CustomInstaller.dll into the setup
See the contents of mail files below....

However!, when I remove all references to all platforms other than AMR4,
the setup starts to work fine. in other words if I leave just the
platform ARM4-specific information in the INF file, only one cab (arm4),
and in setup.ini. - then the install works ok.

Does any one know what I shoudl do to get this to work with multiple
cabs in the package?


My final .INF is about like this:
[INF]
[Version]
Signature="$Windows NT$"
Provider="Company"
CESignature="$Windows CE$"

[CEStrings]
AppName="appname"
InstallDir=%CE1%\%AppName%

[CEDevice]
VersionMin=3.00
VersionMax=4.99

[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common

[DefaultInstall.ARMV4]
CopyFiles=Files.ARMV4
CESetupDLL=vsd setup.dll

[DefaultInstall.ARM]
CopyFiles=Files.ARM
CESetupDLL=vsd setup.dll

[DefaultInstall.SH3]
CopyFiles=Files.SH3
CESetupDLL=vsd setup.dll

[DefaultInstall.MIPS]
CopyFiles=Files.MIPS
CESetupDLL=vsd setup.dll

[DefaultInstall.X86]
CopyFiles=Files.X86
CESetupDLL=vsd setup.dll

[DefaultInstall.WCE420X86]
CopyFiles=Files.WCE420X86
CESetupDLL=vsd setup.dll

[SourceDisksNames]
1=,"Common1",,"C:\pocketpcapps\appname\obj\Release\"

[SourceDisksNames.ARMV4]
2=,"ARMV42",,"C:\pocketpcapps\appname\obj\Release\"
3=,"ARMV4 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\ARMV4\"

[SourceDisksNames.ARM]
4=,"ARM4",,"C:\pocketpcapps\appname\obj\Release\"
5=,"ARM Setup",,"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\ARM\"

[SourceDisksNames.SH3]
6=,"SH36",,"C:\pocketpcapps\appname\obj\Release\"
7=,"SH3 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\SH3\"

[SourceDisksNames.MIPS]
8=,"MIPS8",,"C:\pocketpcapps\appname\obj\Release\"
9=,"MIPS Setup",,"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\MIPS\"

[SourceDisksNames.X86]
10=,"X8610",,"C:\pocketpcapps\appname\obj\Release\"
11=,"X86 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\X86\"

[SourceDisksNames.WCE420X86]
12=,"WCE420X8612",,"C:\pocketpcapps\appname\obj\Release\"
13=,"WCE420X86 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\WCE420X86\"

[SourceDisksFiles]
appname.exe=1

[SourceDisksFiles.ARMV4]
vsd config.txt.ARMV4=2
vsd setup.dll=3

[SourceDisksFiles.ARM]
vsd config.txt.ARM=4
vsd setup.dll=5

[SourceDisksFiles.SH3]
vsd config.txt.SH3=6
vsd setup.dll=7

[SourceDisksFiles.MIPS]
vsd config.txt.MIPS=8
vsd setup.dll=9

[SourceDisksFiles.X86]
vsd config.txt.X86=10
vsd setup.dll=11

[SourceDisksFiles.WCE420X86]
vsd config.txt.WCE420X86=12
vsd setup.dll=13

[DestinationDirs]
Files.Common=0,%InstallDir%
Shortcuts=0,%CE2%\Start Menu
Files.ARMV4=0,%InstallDir%
Files.ARM=0,%InstallDir%
Files.SH3=0,%InstallDir%
Files.MIPS=0,%InstallDir%
Files.X86=0,%InstallDir%
Files.WCE420X86=0,%InstallDir%

[Files.Common]
appname.exe,,,0

[Files.ARMV4]
vsd config.txt,vsd config.txt.ARMV4,,0
vsd setup.dll,,,0

[Files.ARM]
vsd config.txt,vsd config.txt.ARM,,0
vsd setup.dll,,,0

[Files.SH3]
vsd config.txt,vsd config.txt.SH3,,0
vsd setup.dll,,,0

[Files.MIPS]
vsd config.txt,vsd config.txt.MIPS,,0
vsd setup.dll,,,0

[Files.X86]
vsd config.txt,vsd config.txt.X86,,0
vsd setup.dll,,,0

[Files.WCE420X86]
vsd config.txt,vsd config.txt.WCE420X86,,0
vsd setup.dll,,,0

[Shortcuts]
appname,0,appname.exe,%CE11%

The BuildCab.bat file has this:

"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\..\bin\..\bin\cabwiz.exe"
"C:\pocketapps\appname\BuildCabs\appname PPC.inf" /dest
"C:\pocketapps\appname\BuildCabs\cabs" /err CabWiz.PPC.log /cpu ARMV4
ARM SH3 MIPS X86 WCE420X86

The Setup.INI that went into setup (for ActiveSync's use) was this:
[CEAppManager]
Version = 1.0
Component = App

[App]
Description = Rudeo Pocket DJ
CabFiles =
appname PPC.X86.CAB,appname PPC.ARM.CAB,appname PPC.ARMV4.CAB,appname PPC
.MIPS.CAB,appname PPC.SH3.CAB,appname PPC.WCE420X86.CAB
 
B

Brian Chamberlain [MS]

Could I take a look at the .INI file you're passing to CEAppMgr (
ActiveSync )?

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: (e-mail address removed) (Anatoly)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Re: multi-platform install fails (ppc .net cf vs.net)
| Date: 3 Nov 2003 11:47:43 -0800
| Organization: http://groups.google.com
| Lines: 204
| Message-ID: <[email protected]>
| References: <[email protected]>
| NNTP-Posting-Host: 205.142.0.77
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1067888864 5460 127.0.0.1 (3 Nov 2003
19:47:44 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Mon, 3 Nov 2003 19:47:44 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!no
t-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:37583
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Does anyone at Microsoft know the best way to address this issue?
|
| is it best to just make separate setup files for each platform? If
| yes, then what is the best way to make it easy for users to determine
| which platform download is right for their Pocket PC device?
|
| -Anatoly
|
|
| > I am trying to put together a platform-independent (multi-cab) setup of
| > a PPC application.
| > using Vs.net 2003, plus recommendations at this URL:
| > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetc
| > omp/html/netcfdeployment.asp
| >
| > The cab files and msi get built without any errors. When I run the
| > install, it runs through desktop portion, then starts up the
ActiveSync,
| > which asks if I want to install into default directory, I say Yes, it
| > then says that see instructions on PPC screen. The PPC screen says that
| > "application ... was not installed successfully, please run setup
| > again".
| >
| > I left the vsd setup.dll in the setup
| > a.. Ran "Build Cab File" to get initial xxxxx PPC.INF and
BuildCab.bat
| > files.
| > b.. Created installer project and installer class.
| > c.. Tied the AfterInstall and AfterUninstall events to the methods
| > provided in the above article
| > d.. Added cab files, and the setup.ini file to the build
| > e.. added CustomInstaller.dll into the setup
| > See the contents of mail files below....
| >
| > However!, when I remove all references to all platforms other than
AMR4,
| > the setup starts to work fine. in other words if I leave just the
| > platform ARM4-specific information in the INF file, only one cab
(arm4),
| > and in setup.ini. - then the install works ok.
| >
| > Does any one know what I shoudl do to get this to work with multiple
| > cabs in the package?
| >
| >
| > My final .INF is about like this:
| > [INF]
| > [Version]
| > Signature="$Windows NT$"
| > Provider="Company"
| > CESignature="$Windows CE$"
| >
| > [CEStrings]
| > AppName="appname"
| > InstallDir=%CE1%\%AppName%
| >
| > [CEDevice]
| > VersionMin=3.00
| > VersionMax=4.99
| >
| > [DefaultInstall]
| > CEShortcuts=Shortcuts
| > CopyFiles=Files.Common
| >
| > [DefaultInstall.ARMV4]
| > CopyFiles=Files.ARMV4
| > CESetupDLL=vsd setup.dll
| >
| > [DefaultInstall.ARM]
| > CopyFiles=Files.ARM
| > CESetupDLL=vsd setup.dll
| >
| > [DefaultInstall.SH3]
| > CopyFiles=Files.SH3
| > CESetupDLL=vsd setup.dll
| >
| > [DefaultInstall.MIPS]
| > CopyFiles=Files.MIPS
| > CESetupDLL=vsd setup.dll
| >
| > [DefaultInstall.X86]
| > CopyFiles=Files.X86
| > CESetupDLL=vsd setup.dll
| >
| > [DefaultInstall.WCE420X86]
| > CopyFiles=Files.WCE420X86
| > CESetupDLL=vsd setup.dll
| >
| > [SourceDisksNames]
| > 1=,"Common1",,"C:\pocketpcapps\appname\obj\Release\"
| >
| > [SourceDisksNames.ARMV4]
| > 2=,"ARMV42",,"C:\pocketpcapps\appname\obj\Release\"
| > 3=,"ARMV4 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
| > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\ARMV4\"
| >
| > [SourceDisksNames.ARM]
| > 4=,"ARM4",,"C:\pocketpcapps\appname\obj\Release\"
| > 5=,"ARM Setup",,"C:\Program Files\Microsoft Visual Studio .NET
| > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\ARM\"
| >
| > [SourceDisksNames.SH3]
| > 6=,"SH36",,"C:\pocketpcapps\appname\obj\Release\"
| > 7=,"SH3 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
| > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\SH3\"
| >
| > [SourceDisksNames.MIPS]
| > 8=,"MIPS8",,"C:\pocketpcapps\appname\obj\Release\"
| > 9=,"MIPS Setup",,"C:\Program Files\Microsoft Visual Studio .NET
| > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\MIPS\"
| >
| > [SourceDisksNames.X86]
| > 10=,"X8610",,"C:\pocketpcapps\appname\obj\Release\"
| > 11=,"X86 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
| > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\X86\"
| >
| > [SourceDisksNames.WCE420X86]
| > 12=,"WCE420X8612",,"C:\pocketpcapps\appname\obj\Release\"
| > 13=,"WCE420X86 Setup",,"C:\Program Files\Microsoft Visual Studio .NET
| > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300\WCE420X86\"
| >
| > [SourceDisksFiles]
| > appname.exe=1
| >
| > [SourceDisksFiles.ARMV4]
| > vsd config.txt.ARMV4=2
| > vsd setup.dll=3
| >
| > [SourceDisksFiles.ARM]
| > vsd config.txt.ARM=4
| > vsd setup.dll=5
| >
| > [SourceDisksFiles.SH3]
| > vsd config.txt.SH3=6
| > vsd setup.dll=7
| >
| > [SourceDisksFiles.MIPS]
| > vsd config.txt.MIPS=8
| > vsd setup.dll=9
| >
| > [SourceDisksFiles.X86]
| > vsd config.txt.X86=10
| > vsd setup.dll=11
| >
| > [SourceDisksFiles.WCE420X86]
| > vsd config.txt.WCE420X86=12
| > vsd setup.dll=13
| >
| > [DestinationDirs]
| > Files.Common=0,%InstallDir%
| > Shortcuts=0,%CE2%\Start Menu
| > Files.ARMV4=0,%InstallDir%
| > Files.ARM=0,%InstallDir%
| > Files.SH3=0,%InstallDir%
| > Files.MIPS=0,%InstallDir%
| > Files.X86=0,%InstallDir%
| > Files.WCE420X86=0,%InstallDir%
| >
| > [Files.Common]
| > appname.exe,,,0
| >
| > [Files.ARMV4]
| > vsd config.txt,vsd config.txt.ARMV4,,0
| > vsd setup.dll,,,0
| >
| > [Files.ARM]
| > vsd config.txt,vsd config.txt.ARM,,0
| > vsd setup.dll,,,0
| >
| > [Files.SH3]
| > vsd config.txt,vsd config.txt.SH3,,0
| > vsd setup.dll,,,0
| >
| > [Files.MIPS]
| > vsd config.txt,vsd config.txt.MIPS,,0
| > vsd setup.dll,,,0
| >
| > [Files.X86]
| > vsd config.txt,vsd config.txt.X86,,0
| > vsd setup.dll,,,0
| >
| > [Files.WCE420X86]
| > vsd config.txt,vsd config.txt.WCE420X86,,0
| > vsd setup.dll,,,0
| >
| > [Shortcuts]
| > appname,0,appname.exe,%CE11%
| >
| > The BuildCab.bat file has this:
| >
| > "C:\Program Files\Microsoft Visual Studio .NET
| > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\..\bin\..\bin\cabwiz.exe"
| > "C:\pocketapps\appname\BuildCabs\appname PPC.inf" /dest
| > "C:\pocketapps\appname\BuildCabs\cabs" /err CabWiz.PPC.log /cpu ARMV4
| > ARM SH3 MIPS X86 WCE420X86
| >
| > The Setup.INI that went into setup (for ActiveSync's use) was this:
| > [CEAppManager]
| > Version = 1.0
| > Component = App
| >
| > [App]
| > Description = Rudeo Pocket DJ
| > CabFiles =
| > appname PPC.X86.CAB,appname PPC.ARM.CAB,appname PPC.ARMV4.CAB,appname
PPC
| > .MIPS.CAB,appname PPC.SH3.CAB,appname PPC.WCE420X86.CAB
| >
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top