Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

132 lines (88 sloc) 4.797 kb

Building the Web Deploy Package

  1. Install the Microsoft Web Platform Installer (WebPI).

    Skip this if you've already done it and haven't changed anything since.

  2. Use the WebPI to install dependencies.

    Skip this if you've already done it and haven't changed anything since.

    Install the PyPI package for pip and all of it's dependencies including Python and distribute. Also install Web Matrix. Note that you can install multiple packages at once so no need to do this in two steps.

  3. Clone Installers-UnifiedInstaller

    Use a windows git client. Skip this if you've already done it and haven't changed anything since.

  4. TODO Create the buildout:

    >cd Installers-UnifiedInstaller
    >%SYSTEMDRIVE%\Python27\python.exe platforms\webpi\TODO.py PloneWebDeployPackage
    

    Make buildout-cache/eggs, buildout-cache/downloads, and buildout-cache/downloads/README.txt (so that the package will create the directory without including it's contents).

    Run:

    >%SYSTEMDRIVE%\Python27\python.exe helper_scripts\create_instance.py . "%USERPROFILE%\My Documents\My Web Sites\Plone42Installer" zinstance __CLIENT_USER__ __ZEO_USER__ __PASSWORD__ 0 0 0 0 standalone create_instance.log 1
    
  5. Run the buildout:

    >cd PloneWebDeployPackage
    >%SYSTEMDRIVE%\Python27\python.exe bootstrap.py -d
    >bin\buildout.exe -N -c develop.cfg
    

    We use develop.cfg to make sure we have all the eggs the user may need including develop tools.

  6. Create the Web Deploy zip package:

    >%SYSTEMDRIVE%\Python27\python.exe setup.py -q sdist --formats=tar -k<
    

    Then open a file browser, select Manifest.xml, Parameters.xml and PloneInstaller-4-2 in that order so the zipfile gets the right name, then right-click and Select "Send to -> Compressed (zipped) Folder".

    TODO>%SYSTEMDRIVE%Python27python.exe setup.py bdist_msdeploy

  7. TODO Test with msdeploy

  8. Update the Web PI atom feed

    1. Update the SHA1 hash

      Install fciv.exe (skip this if you've already done it and know where fciv.exe is).

      Then use it to display the SHA1 hash:

      >fciv.exe -sha1 Parameters.zip
      

      Copy the printed hash and replace the existing one in Installers-UnifiedInstaller\platforms\webpi\web-pi.xml at (xpath) installers/installer/installerFile/sha1 inside the entry/productId for Plone_4_2.

    2. Update the package size

      Use use the file browser to get the package size in KB replace the existing one in Installers-UnifiedInstaller\platforms\webpi\web-pi.xml at installers/installer/installerFile/fileSize.

  9. Test with WebPI

    1. Point WebPI to the local feed

      Skip this if you've already done it and haven't changed anything since.

      Force WebPI to use the modified feed. Use the WebPI options screen to remove any previous Plone installer feeds and adding file:///C:/...Installers-UnifiedInstaller/platforms/webpi/web-pi.xml replacing ... with the appropriate path. Then delete it's cache of feeds by deleting all *.xml files in %LOCALAPPDATA%\xen\Local Settings\Application Data\Microsoft\Web Platform Installer (%USERPROFILE%\Local Settings\Application Data\Microsoft\Web Platform Installer on Windows XP).

    2. Point WebPI to the local package

      You can skip this if you've done it before and the new package is in the same place as the file URL points to.

      Replace the URL in Installers-UnifiedInstaller\platforms\webpi\web-pi.xml at installers/installer/installerFile/installerURL with file:///C:/.../Parameters.zip replacing ... with the appropriate path. This will make the WebPI install your archive and not the current one online.

    3. TODO Install the new package with WebPI

    4. TODO Test with WebMatrix

  10. Release the package

    1. Restore the <installerURL> element contents.
    2. Commit the SHA1 and file size changes to Installers-UnifiedInstaller\platforms\webpi\web-pi.xml
    3. Upload Parameters.zip to dist.plone.org as PloneInstaller-4-2.zip
    4. upload Installers-UnifiedInstaller\platforms\webpi\web-pi.xml to dist.plone.org
    5. Ask Windows users to test by installing from WebPI
Jump to Line
Something went wrong with that request. Please try again.