I have a desktop application that automatically checks for updates on every start and automatically installs the update silently if one is available. I am using an .exe
setup created with NSIS for that and do it with the following steps:
- While the app is running I move all application files to the temp folder
- I download and silently run the
setup.exe
file - I restart my application and do a cleanup of the temp folder
This allows me to update the application while it is running. I would like to do something similar with a Wix .msi
installer, but I am not sure if and how it is possible. I know there is a silent flag, but I believe .msi
keeps track of all the files it has installed so will this work anyway? Can I just do the same thing with an .msi
installer or how would one generally handle this? Is it maybe even possible to put all this logic directly inside the installer?