diff --git a/CI/windows/create_installer.ps1 b/CI/windows/create_installer.ps1 index 04fbea57..72186ec9 100644 --- a/CI/windows/create_installer.ps1 +++ b/CI/windows/create_installer.ps1 @@ -2,61 +2,19 @@ $ErrorActionPreference = "Stop" $ErrorView = "NormalView" $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY # path to repo - -function Get-Dll-Paths() { - $vsPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" - if ($vsPath -eq $null) { - Write-Host "Visual Studio (vswhere.exe) not found - can't find dll paths." - return $null - } - - $vsInstallerPath = & $vsPath -latest -requires Microsoft.Component.MSBuild -property installationPath - if ($vsInstallerPath -eq $null) { - Write-Host "Visual Studio Installer path is not available" - return $null - } - - $msvcp140Path = Join-Path $vsInstallerPath 'VC\Tools\MSVC\14.*\bin\Hostx64\x64\msvcp140.dll' - $vcruntime140Path = Join-Path $vsInstallerPath 'VC\Tools\MSVC\14.*\bin\Hostx64\x64\vcruntime140.dll' - if (($msvcp140Path -eq $null) -or ($vcruntime140Path -eq $null)) { - Write-Host "Dll paths not found in Visual Studion installation path." - return $null - } - - $result = New-Object PSObject -Property @{ - msvcp140Path = $msvcp140Path - vcruntime140Path = $vcruntime140Path - } - return $result -} +$OUTSIDE_BUILD = $SRC_DIR.Parent.FullName +$BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$PLATFORM" +$INSTALLER_PATH = "C:\libm2k-system-setup.exe" Set-Location $SRC_DIR - -$ddlPaths = Get-Dll-Paths - -if ($ddlPaths -ne $null) { - Write-Host "msvcp140Path: $($ddlPaths.msvcp140Path)" - Write-Host "vcruntime140Path: $($ddlPaths.vcruntime140Path)" -} else { - Write-Host "Dll Paths not found." -} - -$INSALLER_PATH = Join-Path $SRC_DIR "build-win64\installer" -$DIST_PATH = Join-Path $SRC_DIR "build-win64\dist" # should already exist from th step where we build libm2k - -Copy-Item -Path $ddlPaths.msvcp140Path -Destination $DIST_PATH -Copy-Item -Path $ddlPaths.vcruntime140Path -Destination $DIST_PATH - # creates installer in: C:\libm2k-system-setup.exe -ISCC (Join-Path $DIST_PATH "libm2k.iss") - -if (-not (Test-Path -Path $INSALLER_PATH)) { - New-Item -Path $INSALLER_PATH -ItemType Directory -} -Move-Item -Path "C:\libm2k-system-setup.exe" -Destination $INSALLER_PATH +ISCC (Join-Path $BUILD_DIR "libm2k.iss") # clear artifacts staging directory and copy the installer -> new step is to push an artifact -Get-ChildItem $env:BUILD_ARTIFACTSTAGINGDIRECTORY -Force -Recurse | Remove-Item -Force -Recurse -Copy-Item -Path (Join-Path $INSALLER_PATH "libm2k-system-setup.exe") -Destination $env:BUILD_ARTIFACTSTAGINGDIRECTORY + +$ARTIFACTS_DIR = Get-Item -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY # path to repo + +New-Item -Path (Join-Path $ARTIFACTS_DIR "installer") -ItemType Directory +Copy-Item -Path $INSTALLER_PATH -Destination (Join-Path $ARTIFACTS_DIR "installer") Set-Location $SRC_DIR \ No newline at end of file diff --git a/CI/windows/create_zips.ps1 b/CI/windows/create_zips.ps1 index e465fec0..e533bbeb 100644 --- a/CI/windows/create_zips.ps1 +++ b/CI/windows/create_zips.ps1 @@ -6,43 +6,53 @@ $ARCH = $Env:ARCH $PLATFORM = $Env:PLATFORM $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY # path to repo -$BUILD_DIR = Join-Path $SRC_DIR "build-$PLATFORM\dist" - $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName -$DEST_LIBM2K = Join-Path $OUTSIDE_BUILD "libm2k-$PLATFORM" -$DEST_LIBM2K_DIST = Join-Path $DEST_LIBM2K "dist" +$BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$PLATFORM\*" -if (-not (Test-Path -Path $DEST_LIBM2K)) { - New-Item -Path $DEST_LIBM2K -ItemType Directory -} -if (-not (Test-Path -Path $DEST_LIBM2K_DIST)) { - New-Item -Path $DEST_LIBM2K_DIST -ItemType Directory -} -Set-Location $SRC_DIR -xcopy include $DEST_LIBM2K /s /e /h -Copy-Item -Path "$BUILD_DIR\libm2k.*" -Destination $DEST_LIBM2K -Copy-Item -Path "$BUILD_DIR\_libm2k.*" -Destination $DEST_LIBM2K -Copy-Item -Path "$BUILD_DIR\libm2k_lv.dll" -Destination $DEST_LIBM2K -Copy-Item -Path "$BUILD_DIR\libm2k-sharp.dll" -Destination $DEST_LIBM2K -Copy-Item -Path "$BUILD_DIR\libm2k-sharp-cxx-wrap.dll" -Destination $DEST_LIBM2K -Copy-Item -Path "$BUILD_DIR\*.exe" -Destination $DEST_LIBM2K -Copy-Item -Path "$BUILD_DIR\msvc*.dll" -Destination $DEST_LIBM2K -Copy-Item -Path "$BUILD_DIR\vcruntime*.dll" -Destination $DEST_LIBM2K - -# TODO: do we want to have the wheels build for different python versions? or just the latest -# current implementatino only .whl version using the latest python version -Copy-Item -Path "$BUILD_DIR\*.whl" -Destination $DEST_LIBM2K_DIST - -Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libiio-$ARCH\*.dll") -Destination $DEST_LIBM2K -Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libiio-$ARCH\*.dll") -Destination $DEST_LIBM2K -Copy-Item -Path (Join-Path $OUTSIDE_BUILD "deps\glog\build_0_4_0-x64\Release\glog.dll") -Destination $DEST_LIBM2K - -Set-Location $OUTSIDE_BUILD -7z a "libm2k-$PLATFORM.7z" "libm2k-$PLATFORM" - -# Clean artifacts staging directory and copy the installer -> new step is to push an artifact -Get-ChildItem $env:BUILD_ARTIFACTSTAGINGDIRECTORY -Force -Recurse | Remove-Item -Force -Recurse -Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libm2k-$PLATFORM.7z") -Destination $env:BUILD_ARTIFACTSTAGINGDIRECTORY +$ARTIFACTS_DIR = Get-Item -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY # path to repo +New-Item -Path (Join-Path $ARTIFACTS_DIR "libm2k-$PLATFORM") -ItemType Directory +Copy-Item -Path $BUILD_DIR -Destination (Join-Path $ARTIFACTS_DIR "libm2k-$PLATFORM") + + +# $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY # path to repo +# $BUILD_DIR = Join-Path $SRC_DIR "build-$PLATFORM\dist" + +# $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName +# $DEST_LIBM2K = Join-Path $OUTSIDE_BUILD "libm2k-$PLATFORM" +# $DEST_LIBM2K_DIST = Join-Path $DEST_LIBM2K "dist" + +# if (-not (Test-Path -Path $DEST_LIBM2K)) { +# New-Item -Path $DEST_LIBM2K -ItemType Directory +# } +# if (-not (Test-Path -Path $DEST_LIBM2K_DIST)) { +# New-Item -Path $DEST_LIBM2K_DIST -ItemType Directory +# } + +# Set-Location $SRC_DIR +# xcopy include $DEST_LIBM2K /s /e /h +# Copy-Item -Path "$BUILD_DIR\libm2k.*" -Destination $DEST_LIBM2K +# Copy-Item -Path "$BUILD_DIR\_libm2k.*" -Destination $DEST_LIBM2K +# Copy-Item -Path "$BUILD_DIR\libm2k_lv.dll" -Destination $DEST_LIBM2K +# Copy-Item -Path "$BUILD_DIR\libm2k-sharp.dll" -Destination $DEST_LIBM2K +# Copy-Item -Path "$BUILD_DIR\libm2k-sharp-cxx-wrap.dll" -Destination $DEST_LIBM2K +# Copy-Item -Path "$BUILD_DIR\*.exe" -Destination $DEST_LIBM2K +# Copy-Item -Path "$BUILD_DIR\msvc*.dll" -Destination $DEST_LIBM2K +# Copy-Item -Path "$BUILD_DIR\vcruntime*.dll" -Destination $DEST_LIBM2K + +# # TODO: do we want to have the wheels build for different python versions? or just the latest +# # current implementatino only .whl version using the latest python version +# Copy-Item -Path "$BUILD_DIR\*.whl" -Destination $DEST_LIBM2K_DIST + +# Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libiio-$ARCH\*.dll") -Destination $DEST_LIBM2K +# Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libiio-$ARCH\*.dll") -Destination $DEST_LIBM2K +# Copy-Item -Path (Join-Path $OUTSIDE_BUILD "deps\glog\build_0_4_0-x64\Release\glog.dll") -Destination $DEST_LIBM2K + +# Set-Location $OUTSIDE_BUILD +# 7z a "libm2k-$PLATFORM.7z" "libm2k-$PLATFORM" + +# # Clean artifacts staging directory and copy the installer -> new step is to push an artifact +# Get-ChildItem $env:BUILD_ARTIFACTSTAGINGDIRECTORY -Force -Recurse | Remove-Item -Force -Recurse +# Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libm2k-$PLATFORM.7z") -Destination $env:BUILD_ARTIFACTSTAGINGDIRECTORY Set-Location $SRC_DIR diff --git a/CI/windows/install_deps.ps1 b/CI/windows/install_deps.ps1 index 7360415b..8f752fbc 100644 --- a/CI/windows/install_deps.ps1 +++ b/CI/windows/install_deps.ps1 @@ -127,8 +127,9 @@ function Install-Swig { Write-Output "# Installing swig" Set-Location $DIR_PATH # NOTE: -UserAgent "NativeHost" solved the issue with the download - wait timeout before the download starts - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 - Invoke-WebRequest -Uri "https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.0.0/swigwin-4.0.0.zip/download" -OutFile "swigwin-4.0.0.zip" -UserAgent "Wget" + # [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + curl.exe -L -o "swigwin-4.0.0.zip" "https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.0.0/swigwin-4.0.0.zip/download" + # Invoke-WebRequest -Uri "https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.0.0/swigwin-4.0.0.zip/download" -OutFile "swigwin-4.0.0.zip" -UserAgent "Wget" -TimeoutSec 60 7z x "swigwin-4.0.0.zip" -oswig Remove-Item "swigwin-4.0.0.zip" Set-Location (Join-Path "swig" "swigwin-4.0.0") @@ -140,13 +141,13 @@ function Install-Inno-Setup { Write-Output "# Installing inno-setup" choco install InnoSetup -y - $CRNT_PATH = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine) - if ($CRNT_PATH -notcontains $NEW_PATH) { - Write-Output "## Adding inno-setup to PATH" - $NEW_PATH = "C:\Program Files (x86)\Inno Setup 6" - $NEW_PATH = $CRNT_PATH + ";" + $NEW_PATH - [System.Environment]::SetEnvironmentVariable('PATH', $NEW_PATH, [System.EnvironmentVariableTarget]::Machine) - } + # $CRNT_PATH = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine) + # if ($CRNT_PATH -notcontains $NEW_PATH) { + # Write-Output "## Adding inno-setup to PATH" + # $NEW_PATH = "C:\Program Files (x86)\Inno Setup 6" + # $NEW_PATH = $CRNT_PATH + ";" + $NEW_PATH + # [System.Environment]::SetEnvironmentVariable('PATH', $NEW_PATH, [System.EnvironmentVariableTarget]::Machine) + # } } function Install-Glog { diff --git a/CI/windows/make_windows.ps1 b/CI/windows/make_windows.ps1 index e4100554..aa781d2a 100644 --- a/CI/windows/make_windows.ps1 +++ b/CI/windows/make_windows.ps1 @@ -10,21 +10,24 @@ $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY # path to repo $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName $DEPS_DIR= Join-Path $OUTSIDE_BUILD "deps" -$DIST_DIR = Join-Path $SRC_DIR "build-$PLATFORM/dist" +$BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$PLATFORM" $TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$PLATFORM" - $DEST_LIBIIO = Join-Path $OUTSIDE_BUILD "libiio-$ARCH" -Write-Output "SRC DIR = $SRC_DIR" Write-Output "COMPILER = $COMPILER" Write-Output "ARCH = $ARCH" Write-Output "PLATFORM = $PLATFORM" +Write-Output "SRC DIR = $SRC_DIR" +Write-Output "OUTSIDE_BUILD = $OUTSIDE_BUILD" +Write-Output "DEPS_DIR = $DEPS_DIR" +Write-Output "BUILD_DIR = $BUILD_DIR" Write-Output "TEMP_BUILD_DIR = $TEMP_BUILD_DIR" Write-Output "DEST_LIBIIO = $DEST_LIBIIO" # Create the official build directory for this platform -if (-not (Test-Path -Path $DIST_DIR)) { - New-Item -Path $DIST_DIR -ItemType Directory +if (-not (Test-Path -Path $BUILD_DIR)) { + New-Item -Path $BUILD_DIR -ItemType Directory + New-Item -Path (Join-Path $BUILD_DIR "dist") -ItemType Directory } function Build-Libm2k { @@ -73,5 +76,61 @@ function Build-Libm2k { Get-Content setup.py } +function Get-Dll-Paths() { + $vsPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" + if ($vsPath -eq $null) { + Write-Host "Visual Studio (vswhere.exe) not found - can't find dll paths." + return $null + } + + $vsInstallerPath = & $vsPath -latest -requires Microsoft.Component.MSBuild -property installationPath + if ($vsInstallerPath -eq $null) { + Write-Host "Visual Studio Installer path is not available" + return $null + } + + $msvcp140Path = Join-Path $vsInstallerPath 'VC\Tools\MSVC\14.*\bin\Hostx64\x64\msvcp140.dll' + $vcruntime140Path = Join-Path $vsInstallerPath 'VC\Tools\MSVC\14.*\bin\Hostx64\x64\vcruntime140.dll' + if (($msvcp140Path -eq $null) -or ($vcruntime140Path -eq $null)) { + Write-Host "Dll paths not found in Visual Studion installation path." + return $null + } + + $result = New-Object PSObject -Property @{ + msvcp140Path = $msvcp140Path + vcruntime140Path = $vcruntime140Path + } + return $result +} + +function Move-To-Build-Dir() { + $ddlPaths = Get-Dll-Paths + + if ($ddlPaths -ne $null) { + Write-Host "msvcp140Path: $($ddlPaths.msvcp140Path)" + Write-Host "vcruntime140Path: $($ddlPaths.vcruntime140Path)" + } else { + Write-Host "Dll Paths not found." + } + + Copy-Item -Path $ddlPaths.msvcp140Path -Destination $BUILD_DIR + Copy-Item -Path $ddlPaths.vcruntime140Path -Destination $BUILD_DIR + + Set-Location $TEMP_BUILD_DIR + Copy-Item -Path "*.dll" -Destination $BUILD_DIR + Copy-Item -Path "*.exe" -Destination $BUILD_DIR + Copy-Item -Path "*libm2k.lib" -Destination $BUILD_DIR + Copy-Item -Path "*.iss" -Destination $BUILD_DIR + + Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libiio-$ARCH\*.dll") -Destination $BUILD_DIR + Copy-Item -Path (Join-Path $OUTSIDE_BUILD "libiio-$ARCH\*.dll") -Destination $BUILD_DIR + Copy-Item -Path (Join-Path $OUTSIDE_BUILD "deps\glog\build_0_4_0-x64\Release\glog.dll") -Destination $BUILD_DIR + + Set-Location $SRC_DIR + xcopy include $BUILD_DIR /s /e /h +} + Build-Libm2k -PLATFORM $PLATFORM -GENERATOR $COMPILER -ARCH $ARCH +Move-To-Build-Dir + Set-Location $SRC_DIR diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a8953074..13613a5c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -208,31 +208,21 @@ jobs: inputs: versionSpec: '${{ pyVersion }}' - powershell: | - $SRC_DIR = Get-Location + $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY + $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName + + $BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$Env:PLATFORM\dist" $TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$Env:PLATFORM" - $DEST = Join-Path $SRC_DIR "build-$Env:PLATFORM\dist" Set-Location $TEMP_BUILD_DIR python.exe -m pip install --user --upgrade pip setuptools wheel twine build virtualenv $env:COMPILE_BINDINGS = $true python.exe -m build Remove-Item Env:COMPILE_BINDINGS - Copy-Item -Path "dist/libm2k*.whl" -Destination $DEST + Copy-Item -Path "dist/libm2k*.whl" -Destination (Join-Path $BUILD_DIR "dist") Set-Location $SRC_DIR displayName: Wheel Python ${{ pyVersion }} - # condition: eq('${{ pyVersion }}', '3.11') # NOTE: remove after ci works fine - - powershell: | - $SRC_DIR = Get-Location - $DEST_DIR = Join-Path $SRC_DIR "build-$Env:PLATFORM\dist" - $TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$Env:PLATFORM" - - Set-Location $TEMP_BUILD_DIR - Copy-Item -Path "*.dll" -Destination $DEST_DIR - Copy-Item -Path "*.exe" -Destination $DEST_DIR - Copy-Item -Path "*.lib" -Destination $DEST_DIR - Copy-Item -Path "*.iss" -Destination $DEST_DIR - Set-Location .. - displayName: 'Move to build directory' + condition: eq('${{ pyVersion }}', '3.11') # NOTE: remove after ci works fine - task: PowerShell@2 displayName: 'Create libm2k-system-setup installer' condition: eq(variables['System.JobName'], 'VS_2022') @@ -242,7 +232,7 @@ jobs: - task: PublishPipelineArtifact@1 condition: eq(variables['System.JobName'], 'VS_2022') inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' + targetPath: '$(Build.ArtifactStagingDirectory)/installer' artifactName: 'Libm2k-System-Setup-Exe' - task: PowerShell@2 displayName: "Create ZIPs" @@ -251,7 +241,7 @@ jobs: filePath: ./CI/windows/create_zips.ps1 - task: PublishPipelineArtifact@1 inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' + targetPath: '$(Build.ArtifactStagingDirectory)/libm2k-$(env:PLATFORM)' artifactName: '$(artifactName)' diff --git a/libm2k.iss.cmakein b/libm2k.iss.cmakein index a9c42f87..6485c2c8 100644 --- a/libm2k.iss.cmakein +++ b/libm2k.iss.cmakein @@ -71,47 +71,47 @@ begin [Files] ;Source: "C:\projects\libm2k\build-win32\libm2k.dll"; DestDir: "{sys}"; Flags: 32bit replacesameversion -Source: ".\libm2k.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Flags: replacesameversion +Source: "D:\a\1\libm2k-win64\libm2k.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Flags: replacesameversion ;Source: "C:\projects\libm2k\build-win32\{#MsvcLib}"; DestDir: "{sys}"; Check: not isMsvcInstalled; Flags: onlyifdoesntexist 32bit -Source: "{#MsvcLib}"; DestDir: "{sys}"; Check: Is64BitInstallMode and (not isMsvcInstalled); Flags: onlyifdoesntexist +Source: "D:\a\1\libm2k-win64\{#MsvcLib}"; DestDir: "{sys}"; Check: Is64BitInstallMode and (not isMsvcInstalled); Flags: onlyifdoesntexist ;Source: "C:\projects\libm2k\build-win32\{#MsvcRuntime}"; DestDir: "{sys}"; Check: not isMsvcInstalled; Flags: onlyifdoesntexist 32bit -Source: "{#MsvcRuntime}"; DestDir: "{sys}"; Check: Is64BitInstallMode and (not isMsvcInstalled); Flags: onlyifdoesntexist +Source: "D:\a\1\libm2k-win64\{#MsvcRuntime}"; DestDir: "{sys}"; Check: Is64BitInstallMode and (not isMsvcInstalled); Flags: onlyifdoesntexist ;Source: "C:\projects\libm2k\build-win32\*.exe"; DestDir: "{sys}"; Check: not Is64BitInstallMode -;Source: ".\*.exe"; DestDir: "{sys}"; Check: Is64BitInstallMode +;Source: "D:\a\1\libm2k-win64\*.exe"; DestDir: "{sys}"; Check: Is64BitInstallMode ;Source: "C:\projects\libm2k\build-win32\m2kcli.exe"; DestDir: "{sys}"; Check: not Is64BitInstallMode; -Source: ".\m2kcli.exe"; DestDir: "{sys}"; Check: Is64BitInstallMode; +Source: "D:\a\1\libm2k-win64\m2kcli.exe"; DestDir: "{sys}"; Check: Is64BitInstallMode; ;Source: "C:\projects\libm2k\build-win32\libm2k.lib"; DestDir: "{pf32}\Microsoft Visual Studio 15.0\VC\lib"; Check: not Is64BitInstallMode -Source: ".\libm2k.lib"; DestDir: "{pf32}\Microsoft Visual Studio 15.0\VC\lib\amd64"; Check: Is64BitInstallMode -Source: "..\..\include\*"; DestDir: "{pf32}\Microsoft Visual Studio 15.0\VC\include"; Flags: replacesameversion recursesubdirs +Source: "D:\a\1\libm2k-win64\libm2k.lib"; DestDir: "{pf32}\Microsoft Visual Studio 15.0\VC\lib\amd64"; Check: Is64BitInstallMode +Source: "D:\a\1\libm2k-win64\libm2k\*"; DestDir: "{pf32}\Microsoft Visual Studio 15.0\VC\include"; Flags: replacesameversion recursesubdirs ;Source: "C:\libiio-win32\libiio.dll"; DestDir: "{sys}"; Tasks: install_libiio_force install_libiio; Flags: 32bit replacesameversion -Source: "..\..\..\libiio-x64\libiio.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; Flags: replacesameversion +Source: "D:\a\1\libiio-x64\libiio.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; Flags: replacesameversion ;Source: "C:\libiio-win32\libxml2.dll"; DestDir: "{sys}"; Tasks: install_libiio_force install_libiio; Flags: 32bit -Source: "..\..\..\libiio-x64\libxml2.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; +Source: "D:\a\1\libiio-x64\libxml2.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; ;Source: "C:\libiio-win32\libusb-1.0.dll"; DestDir: "{sys}"; Tasks: install_libiio_force install_libiio; Flags: 32bit -Source: "..\..\..\libiio-x64\libusb-1.0.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; +Source: "D:\a\1\\libiio-x64\libusb-1.0.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; ;Source: "C:\libiio-win32\libserialport-0.dll"; DestDir: "{sys}"; Tasks: install_libiio_force install_libiio; Flags: 32bit -Source: "..\..\..\libiio-x64\libserialport-0.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; +Source: "D:\a\1\libiio-x64\libserialport-0.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_libiio_force install_libiio; ;Source: "C:\glog\build_0_4_0-Win32\Release\glog.dll"; DestDir: "{sys}"; Tasks: install_glog; Flags: 32bit -Source: "..\..\..\deps\glog\build_0_4_0-x64\Release\glog.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_glog; +Source: "D:\a\1\deps\glog\build_0_4_0-x64\Release\glog.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Tasks: install_glog; ;Source: "C:\projects\libm2k\build-win32\libm2k-sharp.dll"; DestDir: "{cf}\libm2k"; Check: not Is64BitInstallMode; Flags: replacesameversion ;Source: "C:\projects\libm2k\build-win32\libm2k-sharp-cxx-wrap.dll"; DestDir: "{sys}"; Check: not Is64BitInstallMode; Flags: replacesameversion -Source: ".\libm2k-sharp.dll"; DestDir: "{cf}\libm2k"; Check: Is64BitInstallMode; Flags: replacesameversion -Source: ".\libm2k-sharp-cxx-wrap.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Flags: replacesameversion +Source: "D:\a\1\libm2k-win64\libm2k-sharp.dll"; DestDir: "{cf}\libm2k"; Check: Is64BitInstallMode; Flags: replacesameversion +Source: "D:\a\1\libm2k-win64\libm2k-sharp-cxx-wrap.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Flags: replacesameversion ;Source: "C:\projects\libm2k\build-win32\libm2k_lv.dll"; DestDir: "{sys}"; Flags: 32bit replacesameversion; Tasks: install_labview_wrapper; -Source: ".\libm2k_lv.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Flags: replacesameversion; Tasks: install_labview_wrapper; +Source: "D:\a\1\libm2k-win64\libm2k_lv.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode; Flags: replacesameversion; Tasks: install_labview_wrapper; [Tasks] Name: "install_libiio"; Description: "Install libiio"; Check: Not isIioInstalled;