> I'm using DTF to insert a new row into an empty CustomAction table. I'm
> using the following block of code :
> 
> RunMSIQuery(txtMSI.Text, "INSERT INTO `CustomAction` (`Action`, `Type`,
> `Source`, `Target`) VALUES ('VisionappSecurityGroup', 51,
> 'SecurityGroup', 'v-[NtName]')"
> 
> public static bool RunMSIQuery(string sMsiPath, string sQuery)
>         {
>             using (InstallPackage MsiDb = new InstallPackage(sMsiPath,
> DatabaseOpenMode.Direct))
>             {
>                 using (View vwProps = MsiDb.OpenView(sQuery))
>                 {
>                             vwProps.Execute();
>                 }
> 
>                 MsiDb.Commit();
>             }
>             return true;
>         }
> 
> 
> Function failed during execution. Database: C:\MSITEST\PROPTEST.msi
> Table(s) Update failed.
> 
> The MSI Error code is 2259.
> 
> If you open the MSI database in orca, only the Type  column is populated
> with 51.
> 
> Do you know what is causing this error?

If you are doing this from a custom action, why are you opening the
MSI database as a file?  You should be accessing the database through
the existing install session and not from a file.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>

        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to