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 — Make sure MSI build works when not preview by TravisEz13 · Pull Request #7752 · PowerShell/PowerShell Conversation
|
| <Component Id="SetPath" Guid="{9dbb7763-7baf-48e7-b025-3bdedcb0632f}" KeyPath="yes"> | ||
| <Condition>ADD_PATH=1</Condition> | ||
| <Environment Id="PATH" Action="set" Name="PATH" Part="last" Permanent="no" System="yes" Value="[$(var.ProductDirectoryName)]$(var.PwshPath)"/> | ||
| <Environment Id="PATH" Action="set" Name="PATH" Part="last" Permanent="no" System="yes" Value="$(var.PwshPath)"/> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Just curious on why we are making these changes. It looks to me this change doesn't change the behavior -- Value="[$(var.ProductDirectoryName)]$(var.PwshPath)" basically does the same before the change, isn't it?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The variable is set to empty (meaning to delete the variable) in the non-preview case and the build fails
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Travis Plunk (@TravisEz13) Can you please explain briefly? To me it looks like this is a stylistic change only and not a fix |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Christoph Bergmeister (@bergmeister) The variable is set to empty (meaning to delete the variable) in the non-preview case and the build fails |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
used admin to squash when windows CI was finished as this did not affect other platforms |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The variable was set to empty (meaning to delete the variable) in the non-preview case and the build fails. The fix avoids setting the variable to empty
|
Christoph Bergmeister (@bergmeister) feel free to continue the discussion. This was blocking the 6.1 builds so I merged so it's easier to take for the build. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| else | ||
| { | ||
| [Environment]::SetEnvironmentVariable("PwshPath", 'preview', "Process") | ||
| [Environment]::SetEnvironmentVariable("PwshPath", "[$productDirectoryName]preview", "Process") |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Travis Plunk (@TravisEz13) Non-blocking comment: Would it not be cleaner if a the variable was declared directly here to not convolute the script with WiX syntax?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This variable was already there and only used for this purpose. I don't think I'm getting the meaning of your statement.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I do think there is probably a cleaner way of doing this. Like refering to the preview directory by name, but the goal here was to make a quick change that would not require a lot of re-testing for the 6.1.0 release.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
[$productDirectoryName]preview is WiX syntax that we inject into the WiX file. The build script should be generic and know as little about WiX as possible to reduce coupling if installer technology changed for example or WiX 4 brings breaking changes in syntax. How about this:
[Environment]::SetEnvironmentVariable("PwshPath", (Join-Path $productDirectoryName 'preview'), "Process")
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with that change for 6.2.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The variable was set to empty (meaning to delete the variable) in the non-preview case and the build fails. The fix avoids setting the variable to empty
The variable was set to empty (meaning to delete the variable) in the non-preview case and the build fails. The fix avoids setting the variable to empty
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.