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

Feature Request: Save to Generic UNC and Install from UNC Path. #168

Open
miawri opened this issue Jun 7, 2024 · 6 comments
Open

Feature Request: Save to Generic UNC and Install from UNC Path. #168

miawri opened this issue Jun 7, 2024 · 6 comments

Comments

@miawri
Copy link

miawri commented Jun 7, 2024

It would be good if we could save the redists to a UNC file path root and then install/update any/all necessary redists within that UNC folder root.

Is that possible with the current tools by forcing any of the import functions and the install function?

Thanks in advance.

@miawri miawri changed the title Featue Request: Save to Generic UNC and Install from UNC Path. Feature Request: Save to Generic UNC and Install from UNC Path. Jun 7, 2024
@aaronparker
Copy link
Owner

You should be able to use a UNC path with Save-VcRedist, e.g.:

Save-VcRedist -Path \\server\share\vcredist

@miawri
Copy link
Author

miawri commented Jun 10, 2024

Thanks for the reply - that allows me to download the installers to the unc....

How would I go about installing the Redists in \server\share?

If I try

$VcRedists = Get-VcList  -Architecture x64
Install-VcRedist -VcList $VcRedists -Path \\server\share

I get
WARNING: Parameter 'Path' is obsolete. This parameter is not longer supported. The Path property must be on the object passed to -VcList

I've tried exporting the .json and pointing the -Path at that with no joy.

Thanks in advance!

@aaronparker
Copy link
Owner

$VcRedists = Get-VcList  -Architecture x64 | Save-VcRedist -Path \\server\share
Install-VcRedist -VcList $VcRedists

@miawri
Copy link
Author

miawri commented Jun 10, 2024

Will this command try to resave the Redists each time a client runs the command?
I just want the clients to install the redists that I have saved to the server share.

@aaronparker
Copy link
Owner

No, Save-VcRedist won't redownload the file if it's already in the share, but it updates the output from Get-VcList with the path to each installer.

@miawri
Copy link
Author

miawri commented Jun 10, 2024

Amazing, thank you.

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

No branches or pull requests

2 participants