cloudbase / cloudbase-init-installer

Cloudbase-Init MSI installer
Apache License 2.0
12 stars 24 forks source link

Unsupported requirements? #27

Open crislub opened 2 years ago

crislub commented 2 years ago

Hello,

We are trying to compile this project in Visual Studio 2013, however the project requires Wix Toolset with Net Framework 3.5, which is no longer supported in the vast majority of modern Windows operating systems, is there any alternative?

In parallel we are trying to run the scripts standalone with PowerShell, but they throw the following error:

copy : Cannot find path 'C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC140_CRT_x64.msm' because it does not exist. At C:\Users\administrator\Desktop\cloudbase-init-installer\BuildAutomation\BuildCloudbaseInitSetup.ps1:147 char:9 copy "${VSRedistDir}\Microsoft_VC140_CRTx64.msm" $installer ...

 CategoryInfo          : ObjectNotFound: (C:\Program File...140_CRT_x64.msm:String) [Copy-Item], ItemNotFoundException
 FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

We have Visual Studio 2013 installed. Also tried with 2015 and 2017. Is there any requirement list for this project?

Thanks.

ader1990 commented 2 years ago

Hello,

I could achieve building the cloudbase installer using github actions, if you are interested you can find it here:

Please let me know if that helps, as the automation is complete:

https://github.com/ader1990/cloudbase-init-installer-1/tree/nocloud_v2_net_support https://github.com/ader1990/cloudbase-init-installer-1/blob/nocloud_v2_net_support/.github/workflows/build_cbsinit.yml

You can fork the repo and leverage the actions for automated builds. Thank you.

crislub commented 2 years ago

Hello,

Thanks @ader1990 this solution works for github runners, but when we try to use our runners we received the same error with the 'Micrsoft_VC140_CRT_x64.msm' file as previous message. We have installed Visual Studio 2019 and downloaded the vc_redist file but the file is not included in 'Merge Module' folder. Could you tell me which version are you using in the github runners?

Thanks.

ader1990 commented 10 months ago

Hello,

I have used these workflow steps for github actions:

    - name: Add msbuild to PATH
      uses: microsoft/setup-msbuild@v1.1
    - name: Install Windows 8.1 SDK
      run: |
        Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=323507 -OutFile sdksetup.exe -UseBasicParsing
        Start-Process -Wait sdksetup.exe -ArgumentList "/q", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit", "OptionId.NetFxSoftwareDevelopmentKit"
      shell: powershell
ader1990 commented 5 months ago

Hello @crislub, have you solved the issue?

We have moved to Python 3.11 and soon enough Python 3.12 and we are using VS 2019 as well and all works good with the latest code updates.