Skip to content

Commit

Permalink
Update Installer.wxs
Browse files Browse the repository at this point in the history
  • Loading branch information
unitycoder authored Jun 25, 2023
1 parent f19589e commit bee771b
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions Installer.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
<Component Feature="Core">
<File Source="C:\projects\pixelarttool\PixelArtTool\bin\Release\PixelArtTool.exe" />

<!-- Start menu shortcut -->
<!-- Start menu shortcut -->
<Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="PixelArtTool" Icon="IconFile.ico" Advertise="yes" />

<!-- Remove the shortcut on uninstall -->
<RemoveFolder Id="ProgramMenuFolder" Directory="ProgramMenuFolder" On="uninstall" />
<!-- Remove the shortcut on uninstall -->
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
<!-- <RegistryValue Root="HKCU" Key="Software\Microsoft\PixelArtTool" Name="installed" Type="integer" Value="1" KeyPath="yes" /> -->

<RemoveFolder Id="ApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />

</Component>
</Directory>
</Directory>
Expand All @@ -37,20 +37,6 @@
</Directory>

<Icon Id="IconFile.ico" SourceFile="C:\projects\pixelarttool\PixelArtTool\Resources\Icons\appicon.ico" />

</Product>

<!-- Define the RemoveFile table -->
<Fragment>
<ComponentGroup Id="RemoveFileGroup">
<ComponentRef Id="ProductComponent" />
</ComponentGroup>
<FeatureRef Id="HelloWorldFeature" />
</Fragment>

<!-- Define the RemoveFolder element outside the Fragment -->
<Fragment>
<RemoveFolder Id="ApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />
</Fragment>

</Wix>

0 comments on commit bee771b

Please sign in to comment.