PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.42k stars 759 forks source link

Wix Build instructions Question ? #1946

Open quenode opened 2 years ago

quenode commented 2 years ago

Hi, Did not find in documentation https://github.com/PowerShell/Win32-OpenSSH/wiki/Building-OpenSSH-for-Windows-(using-LibreSSL-crypto) How to build Wix MSI package please would maybe I could update the documentation later so everybody can use it. I tried this buy no help

Windows Installer XML Toolset Compiler version 3.11.2.4516


openssh.wixproj
C:\GitLab-Runner\builds\FJU7Huua\0\devops\win32-openssh\contrib\win32\install\openssh.wixproj(4) : error CNDL0149 : Ill-formed preprocessor variable '$(Configuration)'.  Variables must have a prefix (like 'var.', 'env.', or 'sys.') and a name at least 1 character long. If the literal string '$(Configuration)' is desired, use '$$(Configuration)'.```
tgauth commented 2 years ago

Can you try running the following: msbuild openssh.wixproj

It may require the full path to your msbuild.exe, like this: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe"

Note that the MSIs are generated in our build pipeline, so the following files are expected to be in the bin/{Platform}/{Configuration} folder: _manifest\spdx_2.2\manifest.spdx.json _manifest\spdx_2.2\manifest.spdx.json.sha256

To build the MSI, you'll need to either create these files or remove/comment out in the wixproj

If you have additional questions, could you please elaborate on the reason for building the MSI?