GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Install in LocalAppData on Windows · Issue #1592 · voidzero-dev/vite-plus Closed Labels enhancementNew feature or request Milestone DescriptionDescriptionBy default, Vite+ is installed in Suggested solutionChange the default installation location to either Strictly speaking, the default per-user install location is a known folder with the ID FOLDERID_UserProgramFiles. The default path is # Here be P/Invoke... $Shell32 = ([System.Management.Automation.PSTypeName]'Win32.Shell32').Type; if (-not $Shell32) { # The PreserveSig = false setting automatically unmarshals the return value. $signature = @' [DllImport("shell32.dll", CharSet = System.Runtime.InteropServices.CharSet.Unicode, ExactSpelling = true, PreserveSig = false)] public static extern string SHGetKnownFolderPath( ref Guid rfid, uint dwFlags, IntPtr hToken ); '@ $typeArgs = @{ MemberDefinition = $signature Name = "Shell32" Namespace = "Win32" PassThru = $true }; $Shell32 = Add-Type @typeArgs; } # GUID for FOLDERID_UserProgramFiles known folder: {5CD7AEE2-2219-4A67-B85D-6C9CE15660CB} # $guid = [System.Guid]::ParseExact("{5CD7AEE2-2219-4A67-B85D-6C9CE15660CB}", "B") # $guid = [guid]"{5CD7AEE2-2219-4A67-B85D-6C9CE15660CB}" $guid = [System.Guid]::new(0x5CD7AEE2, 0x2219, 0x4A67, 0xB8, 0x5D, 0x6C, 0x9C, 0xE1, 0x56, 0x60, 0xCB); # The flag in the second argument tells Windows to create the folder if it doesn't exist # The null pointer as the third argument means we get the known folder path for the current user $path = $Shell32::SHGetKnownFolderPath([ref]$guid, 0x00008000, [IntPtr]::Zero); return $path; AlternativeNo response Additional contextNo response Validations
Activity
MetadataMetadataAssigneesLabelsenhancementNew feature or request TypeFieldsPriority None yet Start date None yet Target date None yet Effort None yet ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |