Ah, so it looks as though when the Intune command runs the install (from the expected IMECache folder), it appears to extract some content to C:\Windows\Temp
as part of the install
As you state it’s a 64-bit version of Windows (The 1st line of an extract of your log below confirms this):
But the last line of the extract of this log states it’s not being run in 64-bit install mode… I’m wondering if the installer requires to be run via 64-bit Powershell ?
I’m not sure if this is the answer, but this blog (written by the well respected Intune expert Peter van der woude) ‘might’ help:
https://www.petervanderwoude.nl/post/using-the-intune-management-extension-on-a-64-bit-platform-for-a-very-happy-new-year/
Just reading the last line of the log:
I’m interested that the
/LOG="C:\Windows\Logs\Software\.log"
Has not populated the name of the log file.
This maybe because it is interpreting the $installName_Inno_install
part as the whole variable, I’d suggest using this syntax to ‘wrap’ the variable in your source script ( Deploy-Application.ps1
):
$($installName)_Inno_install.log
This way you should get a logfile created as SETUP_GENNIUS_705_Inno_install.log
in your log folder (or what ever you have defined in the $installName
variable)
N.B. Useful tip - As you are using Intune, you would probably benefit from writing all logs to the same location on the device, If you set them to use the default Intune Log folder as the path:
C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\
You can then easily request these logs from a device via the Intune Portal:
This will then request the device to bundle up (zip) all the device logs (including from the Intune Logs folder), registry hives and other diagnotics data, before uploading them to Intune, for you as the admin to download at a later stage via device diagnostics:
You can then easily review the logs without having the device locally to hand