# CMake does not generate HDF5-1.14."X"-win64.msi file

**URL:** <https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796>\
**Category:** HDF5 Library\
**Created:** [December 5, 2023, 7:11pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796 "2023-12-05T19:11:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jefbutar](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@jefbutar](https://forum.hdfgroup.org/u/jefbutar)\
**Post date:** [December 5, 2023, 7:11pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/1 "2023-12-05T19:11:43Z")

</div>

Hi this is my first post and my first time installing HDF5 in a windows machine.

I’m trying to install HDF5 in windows 10 using CMake. I’m following the steps in the `INSTALL_CMake.txt` using the command file

```auto
ctest -S HDF5config.cmake,BUILD_GENERATOR=VS202264 -C Release -VV -O hdf5.log

```

The installation seems to be successful and it passes all the tests. Still, I cannot find the `HDF5-1.14."X"-win64.msi` file that suppose to be created after the installation and that will generate the HDF\_Group in `\Program Files`.

Could you help me to understand what is happening? How can I generate the `msi` file? Am I missing any step?

Thanks!

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [December 5, 2023, 9:09pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/2 "2023-12-05T21:09:45Z")

</div>

It will only create that file if it can find the WiX executable. Other wise it will just compress the install folder into a .zip file.

---

<div class="post-metadata">

**Author:** ![jefbutar](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@jefbutar](https://forum.hdfgroup.org/u/jefbutar)\
**Post date:** [December 5, 2023, 9:58pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/3 "2023-12-05T21:58:24Z")

</div>

Thanks for the reply, I tested it and the wix executable seems Ok.

```auto
wix --version
4.0.3+b9b68be2

```

But you are right, it is generating a .zip file. Is there something that I can do with it instead of using the .msi file ?

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [December 5, 2023, 10:10pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/4 "2023-12-05T22:10:07Z")

</div>

Sure you can unzip where you want it installed - just add the path to the bin folder to your env PATH.

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [December 5, 2023, 10:12pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/5 "2023-12-05T22:12:15Z")

</div>

And I have had trouble in the past with WiX and propably need to investigate a better msi creator.

---

<div class="post-metadata">

**Author:** ![christian.oyarzun](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@christian.oyarzun](https://forum.hdfgroup.org/u/christian.oyarzun)\
**Post date:** [December 5, 2023, 10:13pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/6 "2023-12-05T22:13:16Z")

</div>

CPack does not support WiX 4 yet.

> **[CPack: WiX 4 support (#23910) · Issues · CMake / CMake · GitLab](https://gitlab.kitware.com/cmake/cmake/-/issues/23910)**
>
> Investigating WiX 4 in order to avoid WiX 3's lacking support of Windows longpaths (\\\\?\\ prefixes). However, the previews do not provide candle or light. I'm not sure...

---

<div class="post-metadata">

**Author:** ![jefbutar](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@jefbutar](https://forum.hdfgroup.org/u/jefbutar)\
**Post date:** [December 6, 2023, 4:07pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/7 "2023-12-06T16:07:04Z")

</div>

Thanks for the support!  
I followed your instructions but I still have some errors when calling HDF5

```auto
File or directory C:/Program
  Files/HDF_Group/HDF5/1.14.3/%ProgramFiles%/HDF_Group/HDF5/1.14.3 referenced
  by variable HDF5_BUILD_DIR does not exist !

```

I tried to avoid it by replicating the same folder structure as suggested in the `INSTALL_CMake.txt` file and adding it to the env PATH. But it’s still not working

Should I modify the installation in any way to link the HDF5\_BUILD\_DIR to the correct path?

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [December 6, 2023, 5:39pm UTC](https://forum.hdfgroup.org/t/cmake-does-not-generate-hdf5-1-14-x-win64-msi-file/11796/8 "2023-12-06T17:39:13Z")

</div>

Yes, the default for windows causes problems if the INSTALLDIR isn’t specified, I think I have fixed it in the recent development code - maybe.  
Anyway look for the instances of INSTALLDIR in the HDF5config.cmake file to locate the problem. Make sure the .bat file sets it corectly - another place would be the HDF5options.cmake where it uses the INSTALLDIR to set the CMAKE\_INSTALL\_PREFIX.  
Another choice might to be to not set the INSTALLDIR and go with the default?
