Hi,
I am using Visual studio deployment project for installing my driver using
DIFx DPInST tools, as part of this, my package should support multiple OS
along with X86 & AMD64 platforms.
I really dont want to provide two different msi files to the user for
different platforms, instead, I am using x86 platform selection and while
deploying the all necessary files(sys, dll, inf & other) using Condition
statments.
I also aware that, for 64 bit platform, files will be installed in
programFiles(x86).
Question: I have used the processorArchitecture property to detect the
platform, x86 or AMD64, but i have observed that, this condition is not
working properly and few files of x86 will be installed in AMD64 platform and
some files of AMD64 will be installed on x86 platform. I have double checked
that, condition is used correctly for files as ProcessorArchitecture = X86
ProcessorArchitecture = AMD64
To fix this, instead of using processorArchitecture property i am using
versionNT & versionNT64. Since many OSes are supported, conditions are
becoming very lengthy.
And also for detecting VistaX86, i should give below.
versionNT = 600 And VersionNT64 <> 600 , if i just use versionNT only, again
it is a problem that, in 64 systems, x86 files are copied.
But i really didnt like this, when processorArchitecture is used, while
copying DPINST for x86 platform, instead of this, AMD64 DPINST was copied.
Is there any other property available to detect the architecture or any
other method available to detect the host configuration?
My requirment is one MSI file shouls support all platforms & configurations
to install my driver & appplication.
Thanks,
Kota.