From d3e43012fb7c3f1eb037307aedf2b57e73c857ad Mon Sep 17 00:00:00 2001 From: Janne Hakonen Date: Tue, 4 Sep 2018 19:30:45 +0300 Subject: [PATCH] Changed desktop shortcut as optional in installer. Fixes #17 --- wix/Moonlight/Product.wxs | 30 +++++++++-- wix/MoonlightSetup/Bundle.wxs | 22 ++++++++- wix/MoonlightSetup/RtfTheme.xml | 88 +++++++++++++++++++++++++++++++++ 3 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 wix/MoonlightSetup/RtfTheme.xml diff --git a/wix/Moonlight/Product.wxs b/wix/Moonlight/Product.wxs index 4a9fd256..e5a8c268 100644 --- a/wix/Moonlight/Product.wxs +++ b/wix/Moonlight/Product.wxs @@ -60,16 +60,38 @@ Target="[#MoonlightExe]" Directory="ApplicationProgramsFolder" WorkingDirectory="INSTALLFOLDER" /> + + + + + + - - - + + ADDDESKTOPSHORTCUT=1 + + + + + @@ -85,6 +107,8 @@ + + diff --git a/wix/MoonlightSetup/Bundle.wxs b/wix/MoonlightSetup/Bundle.wxs index 770d5779..01411d9b 100644 --- a/wix/MoonlightSetup/Bundle.wxs +++ b/wix/MoonlightSetup/Bundle.wxs @@ -51,13 +51,32 @@ + + + + + + + + LaunchTarget="[InstallFolder]\Moonlight.exe" + ThemeFile="RtfTheme.xml" /> @@ -75,6 +94,7 @@ + diff --git a/wix/MoonlightSetup/RtfTheme.xml b/wix/MoonlightSetup/RtfTheme.xml new file mode 100644 index 00000000..7285b1a3 --- /dev/null +++ b/wix/MoonlightSetup/RtfTheme.xml @@ -0,0 +1,88 @@ + + + + + + #(loc.Caption) + Segoe UI + Segoe UI + Segoe UI + Segoe UI + Segoe UI + + + #(loc.Title) + + + #(loc.HelpHeader) + #(loc.HelpText) + + + + + #(loc.InstallAcceptCheckbox) + + + + + + #(loc.OptionsHeader) + #(loc.OptionsLocationLabel) + + + + + Add desktop shortcut + + + + + + #(loc.FilesInUseHeader) + #(loc.FilesInUseLabel) + + + + + + + + + + #(loc.ProgressHeader) + #(loc.ProgressLabel) + #(loc.OverallProgressPackageText) + + + + + #(loc.ModifyHeader) + + + + + + #(loc.SuccessHeader) + #(loc.SuccessInstallHeader) + #(loc.SuccessRepairHeader) + #(loc.SuccessUninstallHeader) + + #(loc.SuccessRestartText) + + + + + #(loc.FailureHeader) + #(loc.FailureInstallHeader) + #(loc.FailureUninstallHeader) + #(loc.FailureRepairHeader) + #(loc.FailureHyperlinkLogText) + + #(loc.FailureRestartText) + + + +