Msi.GetProperty

Aug 16, 2007 at 8:10 PM
There are a couple of issues with this task.

The documentation is a copy/paste from Msi.Install.

I am also getting a null ref. exception while trying to use the task:

F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : A task error has occured.

F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : Message = Object re
ference not set to an instance of an object.
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : PropertyName = Versionhelp would be apprr
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : MsiPath = StagingBu
ild.msi
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : PropertyValue = MSIVersio
n
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error :
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : at Microsoft.Sdc.Tasks
.ComWrapper.Initialize(Object o, Boolean secureIDispatch)
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : at Microsoft.Sdc.Tasks
.ComWrapper..ctor(Object o, Boolean secureIDispatch)
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : at Microsoft.Sdc.Tasks
.ComWrapper..ctor(Object o)
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : at Microsoft.Sdc.Tasks
.Msi.GetProperty.GetPropertyRecord(ComWrapper msiDatabase, String propertyName)
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : at Microsoft.Sdc.Tasks
.Msi.GetProperty.InternalExecute()
F:\MSBuild\Staging\DeployToStaging.proj(36,5): error : at Microsoft.Sdc.Tasks
.TaskBase.Execute()

From:

<Msi.GetProperty
MsiPath="StagingBuild.msi"
PropertyName="Version"
PropertyValue="MSIVersion" />