Visual studio setup project and MSBuild (again)

AdamS 0 Reputation points
2026-07-21T13:01:49.42+00:00

Hi,

We're trying to get rid of VS from Jenkins and use MSBuild exclusively, but we have an installer project. I know MSBuild doesn't support .vdproj, so there's no way to make it work. We have a custom UI and a lot of custom actions, so switching to Wix would be quite a challenge. Instead, I wrote a tool to parse vdproj file and populate the schema.msi. The only problem is that I can't figure out how the "ComponentId" in the "Component" table is calculated. Ideally, I'd like to get the same value on both builds: local (installer) and Jenkins (msbuild). It looks it's a combination of the upgrade code, path, and filename, but I've tried different order/hash implementations but can't get the same value.

Could you provide some details how it's calculated and which hash function i should use?

Developer technologies | Visual Studio | Setup
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.