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
# On macOS we must notify the user to take an action if the default location
758
-
# is currently in use. Either there's a previous version of Unity installed
759
-
# manually or another install through UnitySetup possibly failed.
760
-
if (Test-UnitySetupInstance-Path /Applications/Unity/) {
761
-
# TODO: Work in a `$host.ui.PromptForChoice` / -Force param for resolving this.
762
-
throw"Install-UnitySetupInstance has not yet handled working around the base install directory already existing. Please move this manually and try again. Contributions welcomed!";
763
-
}
764
-
}
765
-
766
775
if ( $PSBoundParameters.ContainsKey('Destination') ) {
767
776
# Slight API change here. If BasePath is also provided treat Destination as a relative path.
768
777
if ( $PSBoundParameters.ContainsKey('BasePath') ) {
@@ -776,6 +785,18 @@ function Install-UnitySetupInstance {
# On macOS we must notify the user to take an action if the default location
790
+
# is currently in use. Either there's a previous version of Unity installed
791
+
# manually or another install through UnitySetup possibly failed.
792
+
if (Test-UnitySetupInstance-Path /Applications/Unity/) {
793
+
# TODO: Work in a `$host.ui.PromptForChoice` / -Force param for resolving this.
794
+
throw"Install-UnitySetupInstance has not yet handled working around the base install directory already existing. Please move this manually and try again. Contributions welcomed!";
795
+
}
796
+
797
+
# TODO: Test if $installPath contains a/this version of Unity to move back to /Applications/Unity/
798
+
}
799
+
779
800
# TODO: Strip out components already installed in the destination.
0 commit comments