I tested this:
New-Installer -ProductName "msiNR2" -UpgradeCode '1a73a1be-50e6-4e92-af03-586f4a9d9e82' -Content {
New-InstallerDirectory -PredefinedDirectory "AppDataFolder" -Content {
New-InstallerDirectory -DirectoryName "Testfolder-msiNR2" -Content {
New-InstallerFile -Source c:\1.txt
}
}
} -OutputDirectory c:\Windows\Temp
msi is created
But this new little 36kb msi hangs:

Any ideas?

Windows 10, 21H2
PSVersion 5.1.19041.1682
I tested this:
New-Installer -ProductName "msiNR2" -UpgradeCode '1a73a1be-50e6-4e92-af03-586f4a9d9e82' -Content {
New-InstallerDirectory -PredefinedDirectory "AppDataFolder" -Content {
New-InstallerDirectory -DirectoryName "Testfolder-msiNR2" -Content {
New-InstallerFile -Source c:\1.txt
}
}
} -OutputDirectory c:\Windows\Temp
msi is created
But this new little 36kb msi hangs:

Any ideas?

Windows 10, 21H2
PSVersion 5.1.19041.1682