Thank you this pointed me in the right direction and I saw that in Vista/Server 
2008 I was insering a string where I should be inserting an integer



-----Original Message-----
From: Jason Ginchereau [mailto:jason...@microsoft.com] 
Sent: 31. desember 2008 19:26
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] WindowsInstaller.View.Modify() fails on Vista / Server 
2008

The most common reasons for a table insert to throw a "function failed" error 
are because there's already a record in the table with the same primary key, or 
because a required (non-nullable) field is missing/null in the inserted record. 
I would not expect those cases to behave differently with different MSI 
versions, but you should check to make sure.


-----Original Message-----
From: Kjartan Þór Kjartansson [mailto:kjar...@eskill.is]
Sent: Monday, December 29, 2008 6:38 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] WindowsInstaller.View.Modify() fails on Vista / Server 2008

Hi all,

I'm having a problem with installs made with Wix V3 running on Vista and Server 
2008, I have a custom action that opens a view on a custom table using 
Session.Database.OpenView(string) then it tries to add a record to the table 
with the view using View.Modify(ViewModifyMode.InsertTemporary, Record).

This works as expected on Server 2003 and XP but on Vista and Server 2008 this 
results with:

CustomActionException: 
Microsoft.Deployment.WindowsInstaller.InstallerException: Function failed 
during execution. Database:  Table(s) Update failed.
   at Microsoft.Deployment.WindowsInstaller.View.Modify(ViewModifyMode mode, 
Record record)

and the error code inside the Exception is 1627.

I´ve not been able to find useful information on this error with search engines 
but the closest thing is in this comment 
http://blogs.msdn.com/astebner/archive/2007/11/25/6522370.aspx#8593314 however 
there is no usefull information there only that someone has run into the same 
problem.


Best regards,

Kjartan Þór Kjartansson
Forritari / Software Developer

Eskill ehf.
Lynghálsi 9
110 Reykjavík
Ísland / Iceland
www.eskill.is<http://www.eskill.is/>
+354 594 0000 / +354 594 0031


Fyrirvari/Disclaimer
www.eskill.is/disclaimer<http://www.eskill.is/disclaimer>

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to