Why am I getting an "invalid path error" when trying to install VS on a thumb drive?

Dan Bromberg 51 Reputation points
2025-03-31T07:29:18.8066667+00:00

I am trying to install Visual Studio Community on a 128 GB thumb drive and am receiving the error highlighted in yellow, as shown in the attachment.

VSinstall-err.JPG

How can I avoid this error?
Thanks,
Dan

Developer technologies | Visual Studio | Setup
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2025-03-31T08:59:15.38+00:00

    Hi Dan,

    It’s not possible, or you can understand as, Visual Studio is not designed to install on a thumb drive.

    Some files and dependencies are needed to be installed on system drive, and a removable drive doesn’t support.

    Do you consider offline installing VS? A layout is needed when trying to install VS offline, the layout can be stored on a thumb drive. When you move the layout to another machine by using a thumb drive, you can install the VS there by using this offline layout(if you are interested, more details here: Use the command line to create a local layout).

    Let me know if you have any further concerns.

    Best regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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