Can I add support in the MSI package to change the application folder after installing it?

The only way I know to change TARGETDIR is to uninstall and reinstall the same application. Please note that for this I need the MSI package.

I would like to add support in my MSI packages to change the TARGETDIR application after installing it. This function will be activated using the "Change" option in the "Add / Remove" window. When this option is selected, in addition to the ability to change functions, the user can also change the TARGETDIR folder.

Is it possible?

Thanks.

+4
source share
1 answer

No, It is Immpossible. All properties of the directory (including INSTALLDIR, TARGETDIR, INSTALLLOCATION, or anything else you call them) are immutable after installing the component that references them. You need to remove everything from the selection function for the entire product (depending on which components have components using directories) in order to be able to reinstall this function / product and give the directory a new value.

+5
source

All Articles