This project is read-only.
3

Closed

MSB4030: .NET Type(ed) parameters in Msi.Install task

description

As far as I can tell at least two of the public parameters on the Msi.Install task must be wrong since MSBuild doesn't do the translation from string to Guid or to Enum. Alternatively I'm missing the point in not knowing how to specify a GUID or Enum as input parameter to a MSBuild task (I have been wrong before. I remember once in the seventies....).
 
But if so then the documentation needs a brush up:
 
<Project>
<Target Name="Test">
    <Msi.EmbedInstallProperties 
        MsiPath="C:\Build\Msi\Packages\MyPackage.msi" 
        ProductCode="b6b6f41c-fd3e-4b5b-8a73-c59494974990"                          <----- This doesn't work. Neither does it work with {...} form
        LogFile="C:\Build\Msi\Packages\MyPackage.install.log" 
        LogOptions="Default;Verbose"
        UserInterfaceLevel="None"                                                                       <----- This doesn't work either. At least not on my installation
        LoadUserProfile="true" 
        PropertyFiles="C:\Build\Properties\Global.xml;C:\Build\Properties\Rig4.xml" 
        Properties="INSTALLDIR=C:\Install;DOMAIN=rig4;MACHINE=r4app01" 
        Features="MSMQ,BTS2004,WebServices" >
        <Output TaskParameter="ExecArguments" PropertyName="ExecArguments" />
    </Msi.EmbedInstallProperties>
</Target>
</Project>
Closed Aug 26, 2010 at 10:40 PM by mikeFourie
This library is no longer under active development / support. Please see the home page for details.

comments

Brumlemann wrote Aug 20, 2008 at 1:37 PM

wrote May 26, 2009 at 6:11 PM

dhaligas wrote May 26, 2009 at 6:13 PM

I am seeing the same issue. error MSB4030: "{63F7902D-802A-48D9-A0AC-B2E7D98EA19A}" is an invalid value for the "ProductCode" parameter of the "Msi.Uninstall" task. The "ProductCode" parameter is of type "System.Guid".

wrote Jun 24, 2009 at 3:59 PM

wrote Aug 26, 2010 at 10:40 PM

wrote Feb 14, 2013 at 3:32 AM

wrote May 16, 2013 at 8:00 AM