Default Sequence number, what's determine it?

2019-07-25 16:36发布

问题:

This question already has an answer here:

  • AppSearch has sequence number 50 - right? 1 answer

I am starting getting explored to the black magic of MSI. And one thing stuck on my currently is the seemly randomness of sequence number assigned in the sequence table, or the lack of document I can find. I encounter an issue with my MSI project as AppSearch been assigned a sequence number of 50, which is too low for my usage, and different from this suggested install sequence, or Sequence table example, which both seems reasonable. I just find out that I can easily change sequence number for all the standard actions myself, the issue itself is fixable for me.

But I am thinking that the sequence number been defined some where (either in MSI by Windows SDK? or wix) as default for a reason. The sequence of 50 for AppSearch is might for a good reason (or not so good ones and has been fixed already), or indeed somehow it is affected by a few different factors and is hard to track down and indeed appeared to be random as a result.

Currently my thinking is it is mostly likely been the default value determined by Wix, where is the document/or source code so I can find out then?

Ok, try to summarise my question better: Can I have some control of what set of default sequence number, by using a particular version of Windows Install SDK, or Wix?

回答1:

I didn't see this question before I answered your other one. It is essentially the same question, so I might ask the guys to close this one as duplicate: AppSearch has sequence number 50 - right?

The specific answer to this flavour would be that you can try to change a WiX source file and compile WiX yourself - which is no small task I might add. Please see the above link for the actual file.