tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[feat] Add NSIS support

Open sFireFrog opened this issue 2 years ago • 1 comments

Describe the problem

Wix toolset, a bit difficult to use, ugly interface, maybe I'm not using it properly.

Describe the solution you'd like

Can you provide more packaged installation tools? such as NSIS,Squirrel.Windows

Alternatives considered

No response

Additional context

No response

sFireFrog avatar Jun 23 '22 06:06 sFireFrog

NSIS will be investigated in the future. Currently you'll have to get along with Wix :) at least you don't have to write the XML directly :D

lucasfernog avatar Jun 29 '22 03:06 lucasfernog

I'm assuming this will affect this documentation as well https://tauri.app/v1/guides/building/windows/#replacing-the-installer-code-with-a-custom-wix-file


@amrbashir I'm not familiar with NSIS nor how the implementation and configuration will be. Do you think it would be possible to add options to the installer to install the app for current user only or all users option? Some apps may need to restrict the installation for current user only on Windows too (I personally interested in this)

Something like this, perhaps image

However, I'm not sure about the installation path for the current user. I'm assuming if it's possible, it'll install the app on AppData directory, where we can also use AppData/Roaming for sharing resources. Installing the app on the same directory or AppData/Local could also work I guess.

Found this links https://nsis.sourceforge.io/Docs/MultiUser/Readme.html http://nsis-dev.github.io/NSIS-Forums/html/t-254878.html

seahindeniz avatar Dec 11 '22 13:12 seahindeniz

@seahindeniz In the linked PR, I have implemented an option in tauri.conf.json that determines whether your installer will be built to be installed system-wide or for current userbut not both at the same time

amrbashir avatar Dec 11 '22 13:12 amrbashir