Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make EXE Installer (setup) #169

Open
xmha97 opened this issue Jul 3, 2022 · 11 comments
Open

Make EXE Installer (setup) #169

xmha97 opened this issue Jul 3, 2022 · 11 comments
Labels
enhancement New feature or request suggestion
Milestone

Comments

@xmha97
Copy link

xmha97 commented Jul 3, 2022

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

@MouriNaruto
Copy link
Member

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 MouriNaruto added suggestion enhancement New feature or request labels Jul 3, 2022
@xmha97
Copy link
Author

xmha97 commented Jul 4, 2022

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

@dartraiden
Copy link

dartraiden commented Aug 15, 2022

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

@emako
Copy link

emako commented Sep 3, 2022

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

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

@Shomnipotence
Copy link

It will be packaged by appx or msix

@MouriNaruto
Copy link
Member

#209 (comment)

Kenji Mouri

@MouriNaruto MouriNaruto added this to the NanaZip 3.x milestone Feb 4, 2023
@AndromedaMelody
Copy link
Member

AndromedaMelody commented Feb 4, 2023

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 AndromedaMelody linked a pull request Mar 12, 2023 that will close this issue
5 tasks
@AndromedaMelody AndromedaMelody changed the title Make Installer (setup) Make EXE Installer (setup) & Provide portable version Mar 12, 2023
@AndromedaMelody AndromedaMelody changed the title Make EXE Installer (setup) & Provide portable version Make EXE Installer (setup) Mar 12, 2023
@modz2014
Copy link

modz2014 commented Sep 5, 2023

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

@MouriNaruto
Copy link
Member

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

@modz2014
Copy link

modz2014 commented Sep 5, 2023

well it works outside the msix

@modz2014
Copy link

modz2014 commented Sep 5, 2023

"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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request suggestion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants