GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • assets/wix
    • Product.wxs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎assets/wix/Product.wxs‎

Copy file name to clipboardExpand all lines: assets/wix/Product.wxs
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@
151151
<ComponentRef Id="ApplicationProgramsMenuShortcut"/>
152152
<ComponentRef Id="MURegistryEntries"/>
153153
<ComponentRef Id="RegistryEntries"/>
154-
<ComponentRef Id="SharedRegistryEntries"/>
154+
<?if $(var.IsPreview)!=True?>
155+
<ComponentRef Id="AppPath"/>
156+
<?endif?>
155157
<ComponentRef Id="SetPath"/>
156158
<ComponentRef Id="Telemetry"/>
157159
<ComponentRef Id="DisableTelemetry"/>
@@ -209,13 +211,15 @@
209211
</RegistryKey>
210212

211213
</Component>
212-
<Component Id="SharedRegistryEntries">
214+
<?if $(var.IsPreview)!=True?>
215+
<Component Id="AppPath">
213216
<!-- register ourselves in application registry so can be started using just Win+R `pwsh.exe` -->
214217
<RegistryKey Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\App Paths\pwsh.exe" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
215218
<!-- 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. -->
216219
<RegistryValue Type="string" Value="[VersionFolder]pwsh.exe" KeyPath="yes"/>
217220
</RegistryKey>
218221
</Component>
222+
<?endif?>
219223
<Component Id="DisableTelemetry" Guid="{E86F5C91-3721-4C5C-A31F-1F0A5A468573}" KeyPath="yes">
220224
<Condition>DISABLE_TELEMETRY</Condition>
221225
<Environment Id="PowerShellTelemetryOptout" Action="set" Name="POWERSHELL_TELEMETRY_OPTOUT" Permanent="no" System="yes" Value="1"/>

0 commit comments

Comments
0 (0)
You are visitor 01402520 — 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.