cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
BWU_2000
Level 2

How to have both 32bit and 64bit drivers in a sigle project?

The 32bit and 64bit DIFxApp.dll have the same name. how to specify each driver uses the correct DIFxApp.dll?
I have the two drivers under different features. I have the 32bit release flag for the 32bit install, and 64bit flag for the 64bit install in my Basic MSI project.


Please Help!
Labels (1)
0 Kudos
(1) Reply
Tobias79
Level 5

You need to build the solution twice: one MSI for x86 and one x64 difX drivers. Only one version of Difxapp.dll + Difxappa.dll can be included into an MSI.

The references in the binary table must be modified accordingly (\redist\0409\i386\Difxapp.dll + \redist\0409\i386\Difxappa.dll -> x64 😞


Set oMSI = CreateObject("WindowsInstaller.Installer")

' Upgrade the ISPathValue referencing the assemblies which should be changed to 64bit assemblies
Set oDB = oMSI.OpenDatabase("test.ism", 2)


' Change to 64bit DIFx dlls
Set oView = oDB.OpenView("UPDATE Binary SET Binary.ISBuildSourcePath='\redist\0409\x64\Difxapp.dll' WHERE Binary.Name='Difxapp.dll'")

oView.Execute

Set oView = oDB.OpenView("UPDATE Binary SET Binary.ISBuildSourcePath='\redist\0409\x64\Difxappa.dll' WHERE Binary.Name='Difxappa.dll'")

oView.Execute

' Do commit and cleanup
oDB.Commit

oView.Close

Set oView = Nothing

Set oDB = Nothing

Set oMSI = Nothing
0 Kudos