Asteski / WinMac

Windows and macOS hybrid
101 stars 2 forks source link

Installation Fail #6

Closed addreeh closed 5 months ago

addreeh commented 5 months ago
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:431 char:2
+ [.ShellClassInfo]
+  ~
Missing type name after '['.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:432 char:45
+ IconResource=C:\Windows\System32\SHELL32.dll,160
+                                             ~
Missing argument in parameter list.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:434 char:25
+             $homeDir = "C:\Users\$env:USERNAME"
+                         ~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'C:\Users\$env:USERNAME"
            $homeIniFilePath = "$($homeDir)\desktop.ini"
            if (Test-Path $homeIniFilePath)  {
                Remove-Item $homeIniFilePath -Force
                New-Item -Path $homeIniFilePath -ItemType File -Force | Out-Null
            }
            Add-Content $homeIniFilePath -Value $homeIni
            (Get-Item $homeIniFilePath -Force).Attributes = 'Hidden, System, Archive'
            (Get-Item $homeDir -Force).Attributes = 'ReadOnly, Directory'
            $homePin = new-object -com shell.application
            if (-not ($homePin.Namespace($homeDir).Self.Verbs() | Where-Object {$_.Name -eq "pintohome"})) {
                $homePin.Namespace($homeDir).Self.InvokeVerb("pintohome") | Out-Null
            }

$programsIni = @"' in expression or statement.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:452 char:2
+ [.ShellClassInfo]
+  ~
Missing type name after '['.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:453 char:46
+ IconResource=C:\WINDOWS\System32\imageres.dll,187
+                                              ~
Missing argument in parameter list.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:455 char:29
+             $programsDir = "$($env:APPDATA)\Microsoft\Windows\Start M ...
+                             ~~
Unexpected token '$(' in expression or statement.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:455 char:44
+ ...       $programsDir = "$($env:APPDATA)\Microsoft\Windows\Start Menu\Pr ...
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '\Microsoft\Windows\Start' in expression or statement.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:517 char:4
+ For more information please visit my GitHub page: github.com/Asteski/ ...
+    ~
Missing opening '(' after keyword 'for'.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:519 char:3
+ If you have any questions or suggestions, please contact me on GitHub ...
+   ~
Missing '(' after 'If' in if statement.
At C:\Users\Administrator\Downloads\WinMac-0.3.4\WinMac-0.3.4\install.ps1:523 char:15
+ ... ite-Host "----------------------------------------------------------- ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '---------------------------------------------------------------------------"  -ForegroundColor Cyan
Write-Host
$dockConfirmation = Read-Host "Do' in expression or statement.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingTypename

I just run the script and it gave me this error