You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current v2 install script, I see that it gets the latest installer versions via consistent URLs.
If you want the entire script to be more maintainable without clients needing to update the install script itself in their respective deployed environments and considering that you have already split it out into many functions, it may be worth setting up a PowerShell module, containing all these functions within a .psm1 file with added version control of some kind to reduce the network load.
This would allow you to significantly shorten/simplify the install script, leaving only end-user modification of AccountKey, OrganizationKey, TagsKey, DebugPreference and timeout.
Values like estimatedSpaceNeeded could be maintained yourself within the module based on the current installer version.
I have included a short example for importing a module directly from GitHub (this function is adapted from my more generic module import function and doesn't necessarily handle the install location as you may want to)
In the current v2 install script, I see that it gets the latest installer versions via consistent URLs.
If you want the entire script to be more maintainable without clients needing to update the install script itself in their respective deployed environments and considering that you have already split it out into many functions, it may be worth setting up a PowerShell module, containing all these functions within a .psm1 file with added version control of some kind to reduce the network load.
This would allow you to significantly shorten/simplify the install script, leaving only end-user modification of AccountKey, OrganizationKey, TagsKey, DebugPreference and timeout.
Values like estimatedSpaceNeeded could be maintained yourself within the module based on the current installer version.
I have included a short example for importing a module directly from GitHub (this function is adapted from my more generic module import function and doesn't necessarily handle the install location as you may want to)
The text was updated successfully, but these errors were encountered: