When installing using MSI, set the working directory of the shortcut to the user home directory (#7072)
Leverage the -WorkingDirectory parameter on pwsh.exe to set the initial location. Fix #5705
This commit is contained in:
parent
abcdce4e3e
commit
b25c1f6cbb
|
@ -227,8 +227,8 @@
|
||||||
<Shortcut Id="PowerShell_ProgramsMenuShortcut"
|
<Shortcut Id="PowerShell_ProgramsMenuShortcut"
|
||||||
Name="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
|
Name="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
|
||||||
Description="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
|
Description="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
|
||||||
Target="[$(var.ProductDirectoryName)]pwsh.exe"
|
Target="[$(var.ProductDirectoryName)]pwsh.exe"
|
||||||
WorkingDirectory="$(var.ProductDirectoryName)"
|
Arguments="-WorkingDirectory ~"
|
||||||
Icon = "PowerShellExe.ico" />
|
Icon = "PowerShellExe.ico" />
|
||||||
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
|
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
|
||||||
<!-- HKMU is HKLM when installing perMachine and HKCU when installing perUser-->
|
<!-- HKMU is HKLM when installing perMachine and HKCU when installing perUser-->
|
||||||
|
|
Loading…
Reference in a new issue