Skip to content

Commit 1832e2d

Browse files
committed
msi: show checkbox to guide release note
See https://docs.firegiant.com/wix3/wixui/wixui_customizations/ https://docs.firegiant.com/wix3/tutorial/net-and-net/launch-the-internet/ Note that CustomAction with WixQuietExec64 or Property and ExeCommand with asyncNowait wouldn't worked, so use ExeCommand with Directory=TARGETDIR. Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 411950e commit 1832e2d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

fluent-package/msi/source.wxs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@
151151
<TextStyle Id="WixUI_Font_Normal_White" FaceName="Tahoma" Size="8" Red="255" Green="255" Blue="255" />
152152
<TextStyle Id="WixUI_Font_Bigger_White" FaceName="Tahoma" Size="12" Red="255" Green="255" Blue="255" />
153153
<TextStyle Id="WixUI_Font_Title_White" FaceName="Tahoma" Size="9" Bold="yes" Red="255" Green="255" Blue="255" />
154+
<Publish Dialog="ExitDialog"
155+
Control="Finish"
156+
Event="DoAction"
157+
Value="PostLaunchReleaseNote">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 AND NOT Installed</Publish>
154158
</UI>
155159

156160
<WixVariable Id="WixUILicenseRtf" Value="assets\LICENSE.rtf" />
@@ -291,6 +295,31 @@
291295
Return="check"
292296
Impersonate="yes" />
293297

298+
<!--
299+
Show custom navigation to release note
300+
NOTE: The issue with checkbox with gray background color won't be fixed.
301+
See https://github.com/wixtoolset/issues/issues/1687#issuecomment-166082031
302+
-->
303+
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/>
304+
<CustomAction Id="SetExitDialogDescription"
305+
Property="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
306+
Value="Visit [ProductName] release note"/>
307+
<CustomAction Id="SetPostVisitReleaseNote"
308+
Property="PostVisitReleaseNote"
309+
Value="https://github.com/fluent/fluent-package-builder/releases/tag/v[ProductVersion]" />
310+
<CustomAction Id="PostLaunchReleaseNote"
311+
Directory="TARGETDIR"
312+
Execute="immediate"
313+
ExeCommand="explorer.exe [PostVisitReleaseNote]"
314+
Impersonate="yes"
315+
Return="asyncNoWait" />
316+
317+
<InstallUISequence>
318+
<!-- Show navigation checkbox to access release note -->
319+
<Custom Action="SetPostVisitReleaseNote" After="FindRelatedProducts">NOT Installed</Custom>
320+
<Custom Action="SetExitDialogDescription" After="SetPostVisitReleaseNote">NOT Installed</Custom>
321+
</InstallUISequence>
322+
294323
<InstallExecuteSequence>
295324
<Custom Action="SetPostInstallCommand" After="InstallFiles">NOT Installed</Custom>
296325
<Custom Action="PostInstall" After="SetPostInstallCommand">NOT Installed</Custom>

0 commit comments

Comments
 (0)