Using WiX v3.0.4624.0, compiled the SampleCAs and including in a .msi.
Error thrown when trying to access missing summary info.
See also: http://n2.nabble.com/DTF---SampleCA1-error-td1438675.html
Thanks,
Dale
MSI (s) (90:34) [08:34:06:656]: Doing action: MG_CA_Sample_1
Action 8:34:06: MG_CA_Sample_1.
Action start 8:34:06: MG_CA_Sample_1.
MSI (s) (90:60) [08:34:06:656]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIC.tmp, Entrypoint: SampleCA1
SFXCA: Extracting custom action to temporary directory: C:\WINDOWS\Installer\MSIC.tmp-\
SFXCA: Binding to CLR version v2.0.50727
Calling custom action SampleCAs!Microsoft.Deployment.Samples.ManagedCA.SampleCAs.SampleCA1
Hello from SampleCA1!
CLR version is v2.0.50727.42
Hello from SampleCA1!
CLR version is v2.0.50727.42
Testing summary info...
MSI PackageCode = {E7543532-7411-4C14-9B18-268BDE18724C}
Exception thrown by custom action:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OverflowException: Arithmetic operation resulted in an overflow.
at Microsoft.Deployment.WindowsInstaller.RemotableNativeMethods.MsiSummaryInfoGetProperty(Int32 hSummaryInfo, UInt32 uiProperty, UInt32& uiDataType, Int32& iValue, Int64& ftValue, StringBuilder szValueBuf, UInt32& cchValueBuf)
at Microsoft.Deployment.WindowsInstaller.SummaryInfo.get_Item(UInt32 property, Type type)
at Microsoft.Deployment.WindowsInstaller.SummaryInfo.get_LastSaveTime()
at Microsoft.Deployment.Samples.ManagedCA.SampleCAs.SampleCA1(Session session)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
Action ended 8:34:08: MG_CA_Sample_1. Return value 1.
Fixed in tomorrow's build.
This was another instance of the /checked problem described in bug 2655322. I also fixed other instances of this problem that I could find, so it shouldn't come up again.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 21 days (the time period specified by
the administrator of this Tracker).