Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to define used Drive OR check all drives (non-network mounted) #75

Open
redboyhun opened this issue Oct 20, 2021 · 2 comments
Open

Comments

@redboyhun
Copy link

In Main.ps1 Line 408:
Start-Job -Name FileCollection -ScriptBlock {Get-ChildItem -Path "$ENV:SystemDrive\*" -Include "InstallationAutomation" -Recurse -Directory -ErrorAction SilentlyContinue | Select-Object -First $args[0] } -ArgumentList $TotalComponentsFound | Out-Null

Please take into consideration that the searched folder and files might be on another drive than the SystemDrive. It would be nice if the user would have option to define the drive, where to look for that, or check all the available non-network mounted drives.

@AssafMiron
Copy link
Contributor

Hey @redboyhun ,

Would it be correct to assume that if it is not on the system drive, these folders would be on the same drive the components are installed on?

@redboyhun
Copy link
Author

Would it be correct to assume that if it is not on the system drive, these folders would be on the same drive the components are installed on?

in our case the assumption is correct, but I can imagine that it differs, like Apps on C: and Install files on D: and so on.
Maybe instead of error just write a warning if the path is not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants