mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 15:51:23 +00:00 
			
		
		
		
	python@3.10.4: Modify installer
This avoids the problem in #489 preemptively
This commit is contained in:
		
							parent
							
								
									2ecc74acc1
								
							
						
					
					
						commit
						0889cc5352
					
				@ -38,7 +38,11 @@
 | 
			
		||||
            "@('path.msi', 'pip.msi') | ForEach-Object {",
 | 
			
		||||
            "    Remove-Item \"$dir\\_tmp\\AttachedContainer\\$_\"",
 | 
			
		||||
            "}",
 | 
			
		||||
            "(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }",
 | 
			
		||||
            "(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object {",
 | 
			
		||||
            "    # appendpath.msi does not contain any file, which causes lessmsi extraction to fail",
 | 
			
		||||
            "    if($((Get-Item $_).Basename) -eq 'appendpath') { return }",
 | 
			
		||||
            "    Expand-MsiArchive $_ \"$dir\" ",
 | 
			
		||||
            "}",
 | 
			
		||||
            "Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse",
 | 
			
		||||
            "if ($global) {",
 | 
			
		||||
            "    $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user