Interestingly if I add the 3.5 framework to the machine I get a different
error in the log:

Action 10:41:33: GetOfficeVersions. 
Action start 10:41:33: GetOfficeVersions.
SFXCA: Extracting custom action to temporary directory:
C:\Users\DEVELO~1\AppData\Local\Temp\MSI806C.tmp-\
SFXCA: Binding to CLR version v2.0.50727
Calling custom action
OfficeVersions!OfficeVersions.CustomActions.GetOfficeVersions
Error: could not load custom action class OfficeVersions.CustomActions from
assembly: OfficeVersions
System.BadImageFormatException: Could not load file or assembly
'OfficeVersions' or one of its dependencies. This assembly is built by a
runtime newer than the currently loaded runtime and cannot be loaded.
File name: 'OfficeVersions'
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
   at System.AppDomain.Load(String assemblyString)
   at
Microsoft.Deployment.WindowsInstaller.CustomActionProxy.GetCustomActionMethod(Session
session, String assemblyName, String className, String methodName)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value  (DWORD) to
1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value .

CustomAction GetOfficeVersions returned actual error code 1603 (note this
may not be 100% accurate if translation happened inside sandbox)
Action ended 10:41:34: GetOfficeVersions. Return value 3.
Action 10:41:34: FatalError. 
Action start 10:41:34: FatalError.
Action 10:41:34: FatalError. Dialog created


The custom action has been executed with the version 2.0 runtime - Hence the
error as the custom action uses 4.0. 



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Action-Failing-on-Clean-Windows-8-1-machine-tp7592610p7592611.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to