Thursday, March 11, 2010

Delete corruption from SharePoint database

The kinds of corruption include the following:
  • Sites that have no Webs
  • Webs that have no sites
  • Webs without a document root folder
  • Webs without parent Webs
  • Lists without a parent Web
  • Lists that contain documents or items without a parent list
http://support.microsoft.com/kb/954773/

Wednesday, March 10, 2010

Auto-generated index in Sphinx

Sphinx allows to create auto-generated index. To do it, add index directive into your .rst files. Sphinx will generate genindex.html file with indexes.
If the genindex.html is not created, make sure the html_use_index option is set to True in the conf.py file.
Use the :ref:`genindex` reference to add link to the Index.

Wednesday, March 3, 2010

How to host html on google apps

The following article describes how to do this:

in few words - look at static_dir and static_files handlers in yaml

Tuesday, March 2, 2010

Generate list of source files

If you need to install a lot of files during setup there are the following tools to generate fole with list of sources:
There is the native tool in WIX package:
From my experience:
Used the following command line:
heat dir "C:\Folder" -cg SGroup -dr INSTALLDIR -out HeatFiles.wxs -gg -sfrag -srd
It generates single component for a file even if all files are located in the same folder. Later, I plan to do upgrades for the original msi, so it can be difficult to maintant the file with such big list of components. Also, when you need to do an update for the original msi the component GUIDs are changed. It may cause issues during installation of the update.

I prefer to use Mallow tool:
It was originally developed for WIXv2
But there is the newest version for Wix v3.
Uses the following command line:
mallow -d "C:\Folder" -t files.wxs -w INSTALLDIR -a SourceDir
It generates single component for all files in a folder. It allows to change original file and preserve component GUIDs - this is very usefull when you create update for your msi. In this case it adds change log in the top of the file.
you need to use the folowing command line:
mallow -d "C:\Folder" -s files.wxs -t files.wxs -w INSTALLDIR -a SourceDir

Inside msi

About msi itself:
To understand reboot requests after installation:

WIX - first steps