Looks like I have a solution
For the sake of other users, I'll do a summary of what I've done.
Preresuisite: SQL Server CE 3.5 SP2, butt install only if the Target machine has a lower version installed.
In all other cases: don't install.
I whend to Prerequisites > Additional packages > Packages.
There I marked the SQL Server CE 3.5 SP2 and let AI downloaded the package to a
SQL Server Compact 3.5 SP2 subfolder in the
Prerequisites folder .
I unpacked the
SSCERuntime-ENU in that folder, so I got both versions (x64 and x86).
A
SQL Server CE 3.5 SP2 reference was made under Additional package > Feature-based.
Clicking on this gives me three tabs: Properties - Setup Files - Install conditions.
In the
Setup Files tabpage, I marked the "use files from disk" and under the Main Setup file I navigate to the ...\Prerequisites\SQL Server Compact 3.5 SP2\SSCERuntime_x86-ENU.msi file.
Under
Addional files I added the
SSCERuntime_x64-ENU file.
Under
Install Command Lines I added
/q in
Silent (no UI).
Next to the
Install conditions tabpage where I added three conditions:
- Registry key does not exist - HKLM\SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition
- Registry value containing a version - HKLM\SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v3.5\ENU\DesktopRuntimeVersion - (minimum) 3.5.8080.0
- Registry value with specified content - HKLM\SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v3.5\ServicePackLevel - (Value) 2 - (Comparison) Exact match
I also marked the "Install only if all conditions are false"
FOLLOW US
Get the latest news in Application Packaging