Hello TImotej,
Awesome, that did the trick.
I am glad you got this working
Just wondering, is there another (best practice) approach i could use to achieve the same ?
I am afraid that I am not aware of any other way in which you can achieve that than the one I've already presented above.
Few things I would like to mention here:
1. In order to automate the
ProductCode retrieval in
"Registry" page, all you need to do is to create a new key, like this:
2. I just realised that you want to overwrite a registry that is automatically written by the setup package. Most probably, this does not work because one writing operation happens before the other (e.g. the one that should overwrite with the correct value takes places before the other one). With that being said, I am afraid that what we've discussed in the previous threads no longer apply. A custom approach may indeed be needed here (e.g. your custom action).
Please accept my apologies for misunderstanding your scenario. I thought you want to overwrite a registry key that already exists (before installing) on the machine, in which case the scenario presented above by me would work.
Hope this helps.
Best regards,
Catalin