NanaZip icon indicating copy to clipboard operation
NanaZip copied to clipboard

Make EXE Installer (setup)

Open xmha97 opened this issue 2 years ago • 11 comments

Hi, please Make a installer (setup) I want to install it on the Windows server 2022.

xmha97 avatar Jul 03 '22 12:07 xmha97

https://github.com/M2Team/NanaZip#msix-package

In the current stage, you may install NanaZip with command line.

There are some issues which need to solve before NanaZip supports unpackaged mode and provide standalone installer.

Kenji Mouri

MouriNaruto avatar Jul 03 '22 17:07 MouriNaruto

I prefer the installer because it makes updating easier. Currently, I am using your app as a portable app. image

xmha97 avatar Jul 04 '22 06:07 xmha97

You can use https://github.com/Wilenty/7zTC-7-ZIP-NanaZip-Theme-Changer It allows you to install NanaZip into Program Files like a regular application

mstsc_zBPCwuTEUF

dartraiden avatar Aug 15 '22 15:08 dartraiden

I wrote a packaging demo to convert .msix into an EXE installation program using NSIS. @MouriNaruto

Refer to https://github.com/emako/msix-nsis

emako avatar Sep 03 '22 03:09 emako

It will be packaged by appx or msix

Shomnipotence avatar Sep 04 '22 02:09 Shomnipotence

https://github.com/M2Team/NanaZip/pull/209#issuecomment-1236202127

Kenji Mouri

MouriNaruto avatar Sep 04 '22 06:09 MouriNaruto

  • This comment is converted from the discussion (@higginsm99 , @driver1998 discussed in #156).
  • For more information, please read #274. Thank you.

MSI installer

Originally posted by @higginsm99 2022-05-27T09:52:08Z Can the MSIX file be converted to an MSI as MSIX is only supported on Windows Server 2019 LTSC or later?

Originally posted by @driver1998 2022-06-01T07:14:04Z Compatibility with <RS5 would be broken later when XAML islands are used to modernize the UI.

AndromedaMelody avatar Feb 04 '23 14:02 AndromedaMelody

I have created a simple Wix Installer for NanZip with be uploaded some time today or tomorrow

modz2014 avatar Sep 05 '23 07:09 modz2014

I have created a simple Wix Installer for NanZip with be uploaded some time today or tomorrow

NanaZip is not tested in the unpackaged environment. And I hope the installer will only become after some refactoring work (For example, after introducing the XAML based main UI) finished.

Kenji Mouri

MouriNaruto avatar Sep 05 '23 09:09 MouriNaruto

well it works outside the msix

modz2014 avatar Sep 05 '23 09:09 modz2014

"Presented herewith is the example of the Wix installer, attributed to the user @MouriNaruto."

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Product Id="*" Name="NanaZip" Language="1033" Version="1.0.0.0" Manufacturer="NanaZip" UpgradeCode="750d784e-c6b9-4856-9ca8-4adc247decd3">
        <Package InstallScope="perMachine" Compressed="yes" />

        <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />

        <MediaTemplate EmbedCab="yes" />

        <Feature Id="ProductFeature" Title="NanaZipInstall" Level="1">
            <ComponentRef Id="NanaZipFiles" />
        </Feature>

    </Product>

    <Fragment>
        <!-- Create the "NanaZip" folder during installation -->
        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="INSTALLFOLDER" Name="NanaZip" />
            </Directory>
        </Directory>
    </Fragment>

    <Fragment>
        <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
            <Component Id="NanaZipFiles" Guid="6C46A36D-81D6-4820-8EEF-6CA9995A233E">
                <File Id="NanaZipCExe" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\NanaZipC.exe" KeyPath="yes" />
                <File Id="NanaZipExe" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\NanaZip.exe" KeyPath="no" />
                <File Id="NanaZipConsoleSfx" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\NanaZipConsole.sfx" KeyPath="no" />
                <File Id="NanaZipCoreDll" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\NanaZipCore.dll" KeyPath="no" />
                <File Id="NanaZipWindowsSfx" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\NanaZipWindows.sfx" KeyPath="no" />
                <File Id="NanaZipGExe" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\NanaZipG.exe" KeyPath="no" />
                <File Id="MileXamleStyles" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\Mile.Xaml.Styles.SunValley.xbf" KeyPath="no" />
                <File Id="NanaZipShellExtensionDll" Source="..\Output\Binaries\Debug\NanaZipPackage\x64\NanaZipShellExtension.dll" KeyPath="no" />
            </Component>
            <!-- TODO: You can add more components here if needed for other resources. -->
        </ComponentGroup>
    </Fragment>
    <!-- Define the uninstallation behavior -->
    <Fragment>
        <ComponentGroup Id="UninstallComponents" Directory="INSTALLFOLDER">
            <ComponentRef Id="NanaZipFiles" />
        </ComponentGroup>
    </Fragment>

    <Fragment>
        <UI>
            <UIRef Id="WixUI_InstallDir" />
        </UI>
        <Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="NanaZip has been successfully removed from your computer." />
        <!-- Define the custom action to run Uninstall.exe -->
        <CustomAction Id="RunUninstallExe" Directory="INSTALLFOLDER" Execute="deferred" Impersonate="no" ExeCommand="Uninstall.exe" Return="asyncNoWait" />
        <InstallExecuteSequence>
            <!-- Run the custom action after the files are removed -->
            <Custom Action="RunUninstallExe" After="RemoveFiles">REMOVE="ALL"</Custom>
        </InstallExecuteSequence>
    </Fragment>
</Wix>

modz2014 avatar Sep 05 '23 10:09 modz2014