Thank you for reaching out.
Error 5003 typically occurs because the Visual Studio offline installer is not fully self-contained. Even when using a layout, the bootstrapper may:
- Attempt to connect to the internet to download missing components or updates.
- Try to update itself to a newer version that doesn’t match your packaged layout.
- Fail if the layout is incomplete (missing workloads, languages, or certificate requirements).
When deploying via Intune as a Win32 app, these attempts fail because the installer cannot access the internet and expects a truly offline setup.
Workaround Suggestions
- Run the Installer in True Offline Mode
Use the following switches to prevent the installer from accessing the internet:
-
--noWeb: Blocks all online access. -
--noUpdateInstaller: Prevents the installer from trying to update itself.
These flags ensure the installer relies only on your offline layout.
- Verify the Integrity of Your Layout
Before deployment, verify and fix the layout to ensure all packages are present and uncorrupted:
- Use
--verifyto check for missing packages. - Use
--fixto repair the layout if needed.
This step reduces the chance of encountering error 5003 due to incomplete downloads.
- Include All Required Workloads and Languages
By default, the layout may only contain the core installer. If you don’t explicitly add workloads (e.g., .NET desktop, ASP.NET web development), the installer might attempt to fetch them online later.
Use the --add switch for each workload and language pack you need. You can also use a .vsconfig file to standardize workload selection across environments.
- Make the Layout Accessible to Client Machines
Ensure the layout is properly packaged and accessible during deployment. This could mean:
- Hosting it on a shared network location.
- Including it in the Win32 app package.
- Using relative paths or launching the installer from within the layout directory.
This avoids failures due to missing files or incorrect paths.
- Test Locally Before Intune Deployment
Simulate the offline install on a test machine without internet access. If it succeeds, you can be confident it will work when deployed via Intune.
Also, check logs (dd_bootstrapper*.log) for detailed error traces if issues persist.
Summary
- Error 5003 stems from the installer trying to connect online or encountering missing layout components.
- The fix is to force offline mode and ensure your layout is complete and verified.
- Always test locally before wrapping into Intune for deployment.
References
- Create an offline installation of Visual Studio
- Use command-line parameters to install Visual Studio
Let me know if you need any further help with this. We'll be happy to assist.
If you find this helpful, please mark this as answered.