'VS 2022 Setup Project Uninstall Registry Key - InstallSource = Package Cache

My IT dept. is telling me that usually apps copy the install MSI to ProgramData\PackageCache and updates the registry key to point to this location. They want me to do this. The registry shows this for other apps:

enter image description here

My apps are not doing it like that as you can see.

enter image description here

How do I get my apps to copy the MSI to the Package Cache folder and change the InstallLocation registry key? Is there a setting for this in the Setup Project or do I have to do these two steps with a custom action to copy the file and a registry action to edit the key?

This is the first time for me making installers so I'm a little new to it.



Solution 1:[1]

The behavior you are describing comes from installing an installation package (like an MSI) via a WiX Bundle. If you aren't using a Bundle, you shouldn't find your package in the "Package Cache".

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rob Mensching