Removing and installing increases the size of the declared size of the application

I wrote an installer on WiX; and it works really well. However, I have a minor issue where the reported installer size grows with each subsequent install.

Steps

  • Install app
  • Open "Control Panel", select "Program and Features", find the application and see the size.
  • Delete application
  • Install applicaiton
  • Go back to Control Panel, select Program and Features, find the app and look at the size again (it has grown by about the size of the installer).

Does anyone have any idea how I can stop the growth between installs? Or if it's by design?

+3


source to share


1 answer


Are your components Permanent

set to yes? These components are retained even after removal. See also the attributes RemoveOnuninstall

.

Each program may or may not provide its own size information for Windows. WiX-based programs usually do not and do allow Windows to guess. (Search ARPSIZE

in your project to see if you are running.) Hence, Windows does not necessarily notice all files, but usually all reported size is actually accepted and worth examining through the filesystem. It can include files generated by your program somewhere under Program Files

.



This size does not include the space made by the Windows Installer Key . This is good to know too, as it is often as big as the installed software. MSI is cached primarily to facilitate uninstallation.

For a one-time cleanup of the disk space associated with the program, you can use the Windows Cleanup Utility .

+6


source







All Articles