Error install cxx-module on VS 2022

With this cmake example

I got this error on Windows CI

0s
Run cmake --install build --config Release --prefix stagedir
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/Algo.lib
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/bin/Algo.dll
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/src/algo-interface.cppm
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/include/algo_export.h
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/my_package-targets.cmake
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/my_package-targets-release.cmake
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/./cxx-modules-my_package-targets.cmake
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/./cxx-modules-my_package-targets-Release.cmake
CMake Error at build/cmake_install.cmake:152 (file):
  file INSTALL cannot find
  "D:/a/cmake-init-modules/cmake-init-modules/build/CMakeFiles/Export/0814a8a452340fa10b4323026df361bb/./target-Algo-Release.cmake":
  File exists.


Error: Process completed with exit code 1.

The project is available at GitHub - ClausKlein/cmake-init-modules at feature/import-std-in-cmake-3-30

It seems I have to use the the Ninja Generator on Windows!
See limitatons on

See too https://gitlab.kitware.com/cmake/cmake/-/issues/25594

unfortunately now I got an other error with CPack:

CMake Error at D:/a/cmake-init-modules/cmake-init-modules/build/dev/cmake_install.cmake:49 (file):
file INSTALL cannot find
“D:/a/cmake-init-modules/cmake-init-modules/build/dev/Release/Algo.dll”:
File exists.

It seem I should add the right configurations value to my packagePreset?

see How to use ctest --build-and-test for single and multi config generators? - #3 by ClausKlein