This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to have both 32bit and 64bit drivers in a sigle project?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 15, 2011
12:38 PM
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!
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!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 09, 2011
01:27 AM
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
The references in the binary table must be modified accordingly (
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='
oView.Execute
Set oView = oDB.OpenView("UPDATE Binary SET Binary.ISBuildSourcePath='
oView.Execute
' Do commit and cleanup
oDB.Commit
oView.Close
Set oView = Nothing
Set oDB = Nothing
Set oMSI = Nothing
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)