While you are at it…
While fixing the LUA script is rather simple, there’s another problem on the DxO side with the DPL installer that should be handled. Some of us have noticed that the Repair operation launched from the DPL installer resulted in deleted LR plugins. In some cases, even the Modules folder of LR has been deleted. I think, this is due to the way the DPL installer (and/or the MSI service) operates.
Apparently, when the Repair process is launched, the files are not checked for validity but merely replaced. That is, they are deleted and then re-installed. This is the brute force approach. So, when it comes to installing the LR plugins, they are first deleted and then “re-installed”. But if the routine determining in which folder they should be copied fails, nothing happens and the installation process stops without reporting any error. So, as a result, the plugins are merely deleted and that’s it. I guess that if no other plugins were present in the Modules folder, this folder is itself deleted.
I have not used MSI since a while and I can’t remember whether there’s an option allowing to avoid such a problem. Also, I admit that error management in LUA is a mess (why on earth did they use this language when developing Lightroom ?). But this should be fixed because not all DPL users are aware that they can re-install the plugins by running C:\Program Files\DxO\DxO PhotoLab 1\Plug-ins\Export\lightroom-export.exe.