Thursday 15 July 2010

windows - CMake: download and run msi -


Access to CMake the Kitware, it is possible to automatically download a Microsoft installer (MSI) file (execute Windows To, of course)?

"after item" itemprop = "text">

This should generally be. However, is clearly running the installer will block the CMake process until the user completes all necessary information to the installer

The use of 7-Zip is an example of the founder And:.

  set (DownloadedMsi $ {CMAKE_BINARY_DIR} /7z920-x64.msi) file (download http://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7z920-x64 .msi / download $ {DownloadedMsi} TIMEOUT 30 position StatusVar log LogVar EXPECTED_HASH SHA1 = 4173fea2af9a595fa0be1ef8251f412229687be1) Send ( "\ $ {StatusVar} - $ {StatusVar}") Send ( "\ $ {LogVar} - $ {LogVar} \ n \ n \ n ") execute_process (COMMAND cmd / c" $ {DownloadedMsi} "RESULT_VARIABLE ResultVar OUTPUT_VARIABLE OutputVar ERROR_VARIABLE ErrorVar) Send (" \ $ {ResultVar} - $ {ResultVar} ") Send (" \ $ {OutputVar} - $ { OutputVar} ") message (" \ $ {ErrorVar} - $ {ErrorVar} ")    

No comments:

Post a Comment