Preview. Dael is not open to customers yet; texts and prices may change.

Rebuilding the .intunewin

The source package (the source zip) holds everything SoulBit made for your package, but not your installer. The file installer.json in the zip lists the files to put back. The .intunewin Dael delivers is complete; you only need this when you rebuild it yourself. Your package notes give the same steps with the real names filled in.

Rebuilding

  1. Unzip the source into a new, empty folder on a short path, such as C:\Build: IntuneWinAppUtil fails on paths longer than 260 characters. Do not use Explorer's Extract All with the folder it suggests; that adds a folder level, and the paths below no longer fit. The zip holds one folder, the package source: C:\Build\, the readable package ID (for example IgorPavlov-7Zip-26.04-R1). The second line moves installer.json out of that folder, so it does not end up in your new .intunewin. An older zip without that folder goes to C:\Build\source, and the commands use that folder instead.
    Expand-Archive -LiteralPath '.\<App>_<Version>_<PackageId>_source.zip' -DestinationPath 'C:\Build'
    Move-Item -LiteralPath 'C:\Build\<readableId>\installer.json' -Destination 'C:\Build\installer.json'
  2. Put your installer back: your own upload, which SoulBit does not deliver and deletes after the retention period. Put the original files in C:\Build\uploads and run the lines below. The second line copies each plain upload to its path. The third extracts each archive to C:\Build\extract\ and copies only the files installer.json lists; a file SoulBit changed inside the archive stays as the source zip holds it. Expand-Archive reads ZIP files only: extract another archive or disk image (7z, RAR, CAB, ISO) yourself first to C:\Build\extract\, for example with 7-Zip.
    $s = 'C:\Build\<readableId>'; $j = Get-Content 'C:\Build\installer.json' -Raw | ConvertFrom-Json
    foreach ($i in @($j.uploads | Where-Object path)) { $t = Join-Path $s $i.path; New-Item -ItemType Directory -Path (Split-Path $t) -Force | Out-Null; Copy-Item -LiteralPath (Join-Path 'C:\Build\uploads' $i.name) -Destination $t }
    foreach ($i in @($j.uploads | Where-Object extractTo)) { $x = Join-Path 'C:\Build\extract' $i.name; if (-not (Test-Path -LiteralPath $x)) { Expand-Archive -LiteralPath (Join-Path 'C:\Build\uploads' $i.name) -DestinationPath $x }; foreach ($f in @($j.files | Where-Object from -eq $i.name)) { $t = Join-Path $s $f.path; New-Item -ItemType Directory -Path (Split-Path $t) -Force | Out-Null; Copy-Item -LiteralPath (Join-Path $x $f.path.Substring($i.extractTo.Length + 1)) -Destination $t } }
  3. Check that the folder is complete. The command lists every file that is missing or different; no output means complete. It also proves by SHA256 that you put back the same installer version:
    $s = 'C:\Build\<readableId>'; (Get-Content 'C:\Build\installer.json' -Raw | ConvertFrom-Json).files | Where-Object { -not (Test-Path -LiteralPath (Join-Path $s $_.path)) -or ($_.sha256 -and (Get-FileHash -LiteralPath (Join-Path $s $_.path) -Algorithm SHA256).Hash -ne $_.sha256) } | ForEach-Object { $_.path }
  4. Build with IntuneWinAppUtil, Microsoft's Win32 Content Prep Tool. setupFile is in installer.json: Invoke-AppDeployToolkit.exe for mode PSADT, Install-<App>.ps1 for mode script.
    IntuneWinAppUtil.exe -c "C:\Build\<readableId>" -s "<setupFile>" -o "C:\Build\output" -q
  5. The result is in C:\Build\output and is named after the setup file, not after the delivered .intunewin (for example Invoke-AppDeployToolkit.intunewin). In Intune, open the existing app and select this file as the app package file under its App information. Replace only the package file: the commands, the detection rule and every other setting stay as on the upload sheet.

After the build

Microsoft's tool encrypts every build with a new key, so your own .intunewin differs from the delivered one and no longer matches SHA256SUMS.txt. Record your own checksum, as in Verifying downloads.

Full source on request

On the download page you can request the full source with your installer while SoulBit still has the working copy of your uploads (up to 14 days after delivery). Its download counts like that of the source zip. After that, rebuild as above.

Licence files

A provided licence or value file is not in the zip either. installer.json names only its path and name, never the value, its size or a SHA256, so nobody can work a short key out of the file. Put your own file at its path, and create the folder first when the zip has none. The check in step 3 only tests that such a file is there. See also License keys and install-time data.