Re: Creating an installer

From: Raj Kumar (RajKumar_at_discussions.microsoft.com)
Date: 08/02/04


Date: Mon, 2 Aug 2004 11:57:03 -0700

Hi! David,
After struggling for a while to include the device/processor specific cab files within the application installer to install the Compact framework SP2 on a device, I have resorted to the following option:

-- To include the redistributable from MS on the CD with the application's installer.

In order to do that, I want to put a check in the application installer to find out if the CF SP2 has been installed. If not, I want to rollback/abort the installation and inform the user to install the SP2 from the other .msi file. This way I can keep the installations separate and there by, keep the size of future application updates smaller.

I am trying to figure out where to put the check and so far there hasn't been any solution. How should I be going about this? Any ideas/suggestions would help a lot.

Thanks and regards,
Kumar

"David Gonzales [MS]" wrote:

> Hi Raj,
>
> > How do I go about creating the DLL and invoking it?
>
> You can use VB .NET or C#.NET. Download the sample 'Deployment.msi' project
> from:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfdeployment.asp
> This is for a single application. You can modify the DLL to call
> CeAppMgr.exe multiple times (once for each application). Microsoft Product
> Support Services does not support wrapping up redist CABs into a setup
> project, but theoretically it should work just like any other two
> application setups.
>
> > Do I need to use the redistributable [Compact Framework(sp2)] .msi file?
>
> Use the redist package ".NET Compact Framework 1.0 SP2 Developer
> Redistributable"
> http://www.microsoft.com/downloads/details.aspx?FamilyID=10600643-09b3-46d8-ba28-bc494bc20d26&DisplayLang=en
> These are extracted to a folder of your choice
> - Do not use the CABs from Visual Studio
> - if you want to pick individual CABs, that's fine ... but we have no
> published information on which CABs you should include for specific devices
>
> Microsoft's recommendations for including Compact Framework are here:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfdepl.asp
> This is more sophisticated: It detects which device, and whether the
> Framework is needed or not
> - developers may include the .NET Compact Framework web redistributable
> inside their own MSI and simply invoke it
> - deployment from a PC via RAPI (main subject of the article)
>
> David
> ------
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Raj Kumar" <RajKumar@discussions.microsoft.com> wrote in message
> news:362D82FF-41E3-4843-8A71-EC541AA347F7@microsoft.com...
> > We are in a similar situation and would like to include with our
> app-installer a valid version of Compact Framework(sp2) to be installed if
> not already there. How can this be done. How do I go about creating the DLL
> and invoking it?
> > Do I need to use the redistributable .msi file?
> > Thanks for your time.
> > Regards,
> > Kumar
> >
> > "David Gonzales [MS]" wrote:
> >
> > > Make it simple: Just have your custom action MSI Setup DLL make three
> calls
> > > to CeAppMgr.exe:
> > >
> > > 1. Call CeAppMgr.exe with command line to first package's INI file
> > > 2. Call CeAppMgr.exe with command line to second package's INI file
> > >
> > > If you want your setup program to detect whether SQLCE or CF is already
> > > installed, or correct version installed, that puts a bit of a twist on
> it.
> > > You will need to create a another DLL which can be invoked as a custom
> > > action from the MSI file, or (wrap the same functionality into the DLL
> used
> > > by the Deployment sample).
> > >
> > > Let us know which particulary part you are having trouble with.
> > >
> > > David
> > > ------
> > > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > >
> > > "Brett" <brettmetcalfe@hotmail.com> wrote in message
> > > news:c6f85ddd.0405191724.2fd01036@posting.google.com...
> > > > Hi
> > > >
> > > > We are trying to deploy an application to .NETCF. Thanks largely to
> > > > the sample code (.NET Compact Framework-based Deployment Sample), the
> > > > developer looking after this part of the project can create a valid
> > > > .msi file which he can deploy to PocketPC and install correctly.
> > > >
> > > > However, he cannot get this to work when the Installation includes
> > > > anything more than the primary Application. We need not only the
> > > > primary app, but also a secondary app, SQLCE & .NET Compact Framework.
> > > >
> > > > He cannot make any sense of the MSDN explanation in "Creating an MSI
> > > > Package that Detects and Updates the .NET Compact Framework"
> > > > explanation, and following another of their documents "Developing and
> > > > Deploying Pocket PC Setup Application" results in my PC freezing all
> > > > the time.
>
>
>



Relevant Pages

  • Re: Creating an installer
    ... Thank you David! ... >> How do I go about creating the DLL and invoking it? ... > - Do not use the CABs from Visual Studio ... > Microsoft's recommendations for including Compact Framework are here: ...
    (microsoft.public.pocketpc.developer)
  • Re: Cannot install SDK certificates to WM5 phone
    ... application requires a newer version of .Net Compact framework than the one ... > Compact Framework run CGACUTIL.exe in windows folder on Smartphone (need ... > Link to .Net Compact Framework 2.0 installer: ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: pack together multiple cabs
    ... Chis is right - natively installing cabs from within a meta-cab file is not ... The desktop installer can deploy a single cab that contains multiple cabs ...
    (microsoft.public.pocketpc.developer)
  • Re: Uninstaller and Windows CE Services
    ... > AS should remove the CAB files when you select to remove the device and ... > if a DESKTOP installer puts it there. ... > If you don't know how a desktop installer registers with the add/remove ... What do you think is the reason / cause why AS wouldn't remove the CABs ...
    (microsoft.public.windowsce.app.development)
  • Re: Cannot install IIS
    ... xp still allows the extract command. ... The /A switch will allow you to search all CABs. ... If I change the name to adsutil.vbs the installer finds it fine and then it ... Their only response is to run the Recovery Disk and wipe out your disk. ...
    (microsoft.public.windowsxp.general)

Loading