Cannot install VS Enterprise from offline package - Error 5003

Patrik Perkovic 0 Reputation points
2025-09-11T00:12:26.2866667+00:00

I'm trying to wrap VS2022 Enterprise for the purpose of deployment via Intune as a Win32 app. In my testing, the installer is failing to run offline, with error code 5003.
Layouts have been re-downloaded just in case of corruption etc.

Looking for a workaround or solution!

Developer technologies | Visual Studio | Setup
{count} votes

1 answer

Sort by: Most helpful
  1. Varsha Dundigalla(INFOSYS LIMITED) 2,700 Reputation points Microsoft External Staff
    2025-09-11T07:43:17.9966667+00:00

    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

    1. 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.

    1. Verify the Integrity of Your Layout

    Before deployment, verify and fix the layout to ensure all packages are present and uncorrupted:

    • Use --verify to check for missing packages.
    • Use --fix to repair the layout if needed.

    This step reduces the chance of encountering error 5003 due to incomplete downloads.

    1. 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.

    1. 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.

    1. 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

    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.