clickoncesql-server-ce

Recommendations for detecting updates to prerequisites in Click once app


I have a click once app that uses SQL CE 3.5, which is set as a pre-requisite.

When the install happens Click once, downloads the prerequisites, including SQLCE, installs them, then installs my software and all works - Fantastic!

Now, I perform an update to my application, which requires that SQL CE 3.5 SP2 is needed.

As the application is already installed, when the icon is started on the users pc, my updated code is downloaded and installed ---- and then the app falls over because functions in SP2 are not available.

I can detect in code if the prerequsite or SP2 is there, using the registry... and then link to an extracted version of the installer to download and install that SP2, but its all a bit clunky.... Anyone have a better idea, maybe using the existing prerequiste check in click once?


Solution

  • If I was installing SQLCE, I would include the dll's locally rather than using a prerequisite, which would give me complete control over what version is used.