GeezerVison is showing github.com — Only registry App Path for release package (#20478) · PowerShell/PowerShell@5dc5422
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: assets/wix/Product.wxs +6-2Lines changed: 6 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
151 | 151 | <ComponentRef Id="ApplicationProgramsMenuShortcut"/> |
152 | 152 | <ComponentRef Id="MURegistryEntries"/> |
153 | 153 | <ComponentRef Id="RegistryEntries"/> |
154 | | - <ComponentRef Id="SharedRegistryEntries"/> |
| 154 | + <?if $(var.IsPreview)!=True?> |
| 155 | + <ComponentRef Id="AppPath"/> |
| 156 | + <?endif?> |
155 | 157 | <ComponentRef Id="SetPath"/> |
156 | 158 | <ComponentRef Id="Telemetry"/> |
157 | 159 | <ComponentRef Id="DisableTelemetry"/> |
|
209 | 211 | </RegistryKey> |
210 | 212 |
|
211 | 213 | </Component> |
212 | | - <Component Id="SharedRegistryEntries"> |
| 214 | + <?if $(var.IsPreview)!=True?> |
| 215 | + <Component Id="AppPath"> |
213 | 216 | <!-- register ourselves in application registry so can be started using just Win+R `pwsh.exe` --> |
214 | 217 | <RegistryKey Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\App Paths\pwsh.exe" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes"> |
215 | 218 | <!-- As a shared path, the last one to install will overwrite any previous value. It also needs to be in its own component to properly ref-count and be removed when appropriate. --> |
216 | 219 | <RegistryValue Type="string" Value="[VersionFolder]pwsh.exe" KeyPath="yes"/> |
217 | 220 | </RegistryKey> |
218 | 221 | </Component> |
| 222 | + <?endif?> |
219 | 223 | <Component Id="DisableTelemetry" Guid="{E86F5C91-3721-4C5C-A31F-1F0A5A468573}" KeyPath="yes"> |
220 | 224 | <Condition>DISABLE_TELEMETRY</Condition> |
221 | 225 | <Environment Id="PowerShellTelemetryOptout" Action="set" Name="POWERSHELL_TELEMETRY_OPTOUT" Permanent="no" System="yes" Value="1"/> |
|