Skip to content

Commit

Permalink
Classic right click (#31)
Browse files Browse the repository at this point in the history
* add option to configure classic style right click menu

Installing the classic right-click menu requires a restart.  Normally this is a reboot, but
you can go into task manager, right click on "Windows Explorer" and select `restart`

Reboot is manual - I'd like to set up a conditional for this but can't figure how

It would be nice to make the option to install the classic right click menu dependent on windows version

* remove comment
  • Loading branch information
ScottKirvan authored Sep 10, 2023
1 parent 54f06cb commit cc0a280
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 47 deletions.
16 changes: 10 additions & 6 deletions notes/KANBAN WHITEBOARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ kanban-plugin: basic

## Required:

- [ ] the main script
- [ ] registry keys
- [ ] resources
- [ ] shortcuts to docs


## Options:

- [ ] change default template location
- [ ] option to open docs at end of install


## Done

- [ ] the main script
- [ ] registry keys
- [ ] resources
- [ ] UE5 Template
- [ ] Enable Windows Classic right-click menu
- [ ] change install location
- [ ] change default template location
- [ ] option to open docs at end of install
- [ ] shortcuts to docs



Expand Down
11 changes: 5 additions & 6 deletions notes/WHITEBOARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ WHITEBOARD
> erased. Use it for things like brainstorming, ideation, offloading, etc.
> These notes are ***not*** important and can be erased at any time.
## Installer
### Required components
- the main script
- registry keys
### Options
- UE5 Template
Installing the classic right-click menu requires a restart. Normally this is a reboot, but
you can go into task manager, right click on "Windows Explorer" and select `restart`

Reboot is manual - I'd like to set up a conditional for this but can't figure how

It would be nice to make the option to install the classic right click menu dependent on windows version

23 changes: 13 additions & 10 deletions src/UE_QuickLaunch_installer/Components.wxs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<!-- Core Components -->
<ComponentGroup Id="DefaultComponents" Directory="INSTALLFOLDER">

<!-- File Components -->
Expand All @@ -11,16 +12,6 @@
<File Source="ue-quicklaunch.bat" />
</Component>

<!--
<Component Id="TemplateUproject" Guid="4638e36d-e6ed-420f-bc31-55bcf6f5d048" Directory="UEQLTemplateFolder" >
<File Source="eu_quicklaunch_template\eu_quicklaunch_template.uproject" />
</Component>
<Component Id="TemplateConfig" Guid="0b518f08-3dd6-478b-b876-0eff1be128f9" Directory="UEQLConfigFolder" >
<File Source="eu_quicklaunch_template\Config\DefaultEngine.ini" />
</Component>
-->

<!-- Registry Components -->
<Component Id="RegistryComponent_clickInFolder" Guid="AB8C4904-52D3-4444-A80D-EDC9968D3EF4">
<RegistryKey Root="HKCR" Key="Directory\Background\shell\UE_QuickLaunch">
Expand Down Expand Up @@ -62,6 +53,8 @@
</Component>

</ComponentGroup>

<!-- Template files -->
<ComponentGroup Id="TemplateComponents" Directory="INSTALLFOLDER">
<Component Id="TemplateUproject" Guid="4638e36d-e6ed-420f-bc31-55bcf6f5d048" Directory="UEQLTemplateFolder" >
<File Source="eu_quicklaunch_template\eu_quicklaunch_template.uproject" />
Expand All @@ -71,5 +64,15 @@
<File Source="eu_quicklaunch_template\Config\DefaultEngine.ini" />
</Component>
</ComponentGroup>

<!-- Classic RC Menu -->
<ComponentGroup Id="ClassicRCComponents" Directory="INSTALLFOLDER">
<Component Id="RegistryComponent_ClassicRCMenu" Guid="ff584590-8c0a-4083-a239-a4e2d8093f8d">
<RegistryKey Root="HKCU" Key="Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32">
<RegistryValue Type="string" Value="" />
</RegistryKey>
</Component>
</ComponentGroup>

</Fragment>
</Wix>
44 changes: 19 additions & 25 deletions src/UE_QuickLaunch_installer/Package.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
<Package Name="UE_QuickLaunch" Manufacturer="SKVFX" Version="2.1.0.0" UpgradeCode="5841e624-2d30-4a43-9d17-ac613df29903">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />

<!--
<Property Id="URL" Value="https://github.com/ScottKirvan/UE_QuickLaunch" Sequence="execute" Before="CreateShortcuts" />
-->
<Property Id="URL" Value="https://github.com/ScottKirvan/UE_QuickLaunch" />
<Property Id="INSTALLTEMPLATES" Value="0" />
<Property Id="CUSTOMDIR" Value="!(bline.Property.ProductName)" />

<CustomAction Id="CalculateInstallPath" Property="INSTALLFOLDER" Value="[INSTALLFOLDER]\UE_QuickLaunch" />
Expand All @@ -16,39 +12,37 @@
<Custom Action="CalculateInstallPath" Before="CostFinalize"></Custom>
</InstallExecuteSequence>


<Feature Id="Main" Title="Required Components" ConfigurableDirectory="INSTALLFOLDER" Level="1">
<Feature Id="Main" Title="Required Components" ConfigurableDirectory="INSTALLFOLDER" Level="1"
Description="Configures all File Explorer hooks, installs the launch script, and creates a shortcut to the documentation."
>
<ComponentGroupRef Id="DefaultComponents" />
</Feature>

<Feature Id="Template" Title="UE5 Template" Level="1" >
<Feature Id="Optional" Title="Optional Components" Display="expand" Level="1">
<Feature Id="Template" Title="UE5 Template" Level="1"
Description="Installs a default UE5 project template. Without this UE_QuickLaunch will launch Unreal Engine using a minimal, UE4 compatible uproject file."
>
<ComponentGroupRef Id="TemplateComponents" />
</Feature>

<Feature Id="ClassicRCMenu" Title="&quot;Classic&quot; Win 10 Right-Click Menu" Level="1000"
Description="SYSTEM RESTART REQUIRED. Reverts the Windows 11 File Explorer right-click menu to the &quot;Classic&quot; Win 10 style. Less clicks to launch Unreal Engine."
>
<ComponentGroupRef Id="ClassicRCComponents" />
</Feature>
</Feature>

<MediaTemplate EmbedCab="yes" />

<WixVariable Id="WixUILicenseRtf" Value="license.rtf" />

<!--
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
<ui:WixUI Id="WixUI_InstallDir" />
-->

<!--
<Property Id="ApplicationFolderName" Value="UE_QuickLaunch" />
<Property Id="WixAppFolder" Value="WixPerMachineFolder" />
<ui:WixUI Id="WixUI_Advanced" />
-->

<!--
<ui:WixUI Id="WixUI_FeatureTree" />
-->
<ui:WixUI Id="WixUI_Mondo" />

<!-- I would like to do this ONLY if the "ClassicRCMenu" feature is selected, but I don't know how to do that. REBOOT is left to user now. -->
<!--
<ui:WixUI Id="WixUI_Minimal" />
<InstallExecuteSequence>
<ScheduleReboot After="InstallFinalize" />
</InstallExecuteSequence>
-->

<ui:WixUI Id="WixUI_Mondo" />

</Package>
</Wix>

0 comments on commit cc0a280

Please sign in to comment.