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
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