however, when i package in intune win32, the install will not complete and only install “autodesk identity manager” and “autodesk access” and it ended with failed.
anyone encountered the same issue and how do you package it to work with psadt?
I personally would change the $batchFilePath variable to use the PSADT $dirfiles variable (see the variables documentation here: Variables · PSAppDeployToolkit), as this will trigger the bat file execution from the correct source path.
Making this change, your script should now look like this:
# === Install Section ===
# Define the path to the batch file
$BatchFilePath = "$($dirfiles)\install AutoCAD 2025.bat"
# Execute the batch file using PSADT's Execute-Process
Execute-Process -Path "cmd.exe" -Arguments "/C `"$BatchFilePath`"" -Wait
...
# === Uninstall Section ===
# Define the path to the batch file
$BatchFilePath = "$($dirfiles)\Uninstall AutoCAD 2025.bat"
# Execute the batch file using PSADT's Execute-Process
Execute-Process -Path "cmd.exe" -Arguments "/C `"$BatchFilePath`"" -Wait
For Win32 packages (i.e. for .intunewin files) Intune will download the package below here: C:\Program Files (x86)\Microsoft Intune Management Extension\Content\Staged\<App_ID>\
so the installation can then commence.
N.B. The App_ID can be obtained from the URL in your browsers address bar for the app you have packaged, it is the long GUID immediately after the https://intune.microsoft.com/#view/Microsoft_Intune_Apps/SettingsMenu/~/2/appId/ part of the URL.
I’ve had a look at what my colleagues did. For AutoCAD 2025, they haven’t changed the packaging and it remained with the batch file.
However for Maya, which uses the same delivery mechanism, they copied the content of the image folder into the Files folder, and used the following command:
I have exactly the same issue; I followed the same procedure as you. My deployment fails on the first attempt and succeeds if I restart the installation. I tried creating a loop in PSADT with 3 attempts that doesn’t exit on exitcode 1, but it doesn’t work. If I follow the procedure without using PSADT, it works fine.
For now, I’ll use the .bat file as in the procedure. I wasted a lot of time trying to get it to work with PSADT without success. If you’ve found a solution, I’d love to hear it!