2fast-team / 2fast

Two-Factor Authenticator Supporting TOTP (Windows 10 & Android, iOS, Linux and macOS App)
https://2fast-app.de
GNU General Public License v3.0
393 stars 42 forks source link

Choco install 2fast does not install.. just downloads have to install manually. #81

Closed pvrwizard closed 9 months ago

pvrwizard commented 1 year ago

Describe the bug

CHOCO install 2fast does not install the application, it only downloads it. install has to be manually run. When trying to script this install for multiple machines it installs under the system account which does not allow the install.

Steps to Reproduce

Install Chocolatey command prompt c:\programdata\chocolatey\bin PS C:\ProgramData\chocolatey\bin> choco install 2fast -y --force Chocolatey v2.2.2 Installing the following packages: 2fast By installing, you accept licenses for the packages. Progress: Downloading 2fast 1.2.6... 100%

2fast v1.2.6 (forced) 2fast package files install completed. Performing other installation steps. Downloading 2fast 64 bit from 'https://github.com/2fast-team/2fast/releases/download/v1.2.6/Project2FA.UWP_1.2.6.0_Store_Installer.zip' Progress: 100% - Completed download of C:\Users\preed\AppData\Local\Temp\chocolatey\2fast\1.2.6\Project2FA.UWP_1.2.6.0_Store_Installer.zip (404.17 MB). Download of Project2FA.UWP_1.2.6.0_Store_Installer.zip (404.17 MB) completed. Hashes match. Extracting C:\Users\preed\AppData\Local\Temp\chocolatey\2fast\1.2.6\Project2FA.UWP_1.2.6.0_Store_Installer.zip to C:\ProgramData\chocolatey\lib\2fast\tools... C:\ProgramData\chocolatey\lib\2fast\tools The install of 2fast was successful. Software installed to 'C:\ProgramData\chocolatey\lib\2fast\tools'

Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Steps to reproduce the behavior:

Expected behavior

Expected the package to continue with running the install.ps1

Screenshots

Environment

App Version(s):

Windows 10/11 Build Number:

Additional context

jp-weber commented 12 months ago

Is the installation of the application done in user mode on the different computers, or does it happen in system mode? I have not yet tried the installation myself via choco on different computers, only via Intunes and Microsoft Store reference.

@Xav83 Would you know what that could be?

Xav83 commented 12 months ago

Hi @jp-weber :slightly_smiling_face: ,

The fact that the package doesn't run the script install.ps1 is an issue from the Chocolatey package. If you look at the chocolateyInstall.ps1 chocolatey script, you can see that it only installs the zip, but doesn't attempt to run the script install.ps1. I can try to add a step in order to run this script :slightly_smiling_face: .

Note: I have made an attempt here to do just that. Hopefully it will fix everything :wink:

Xav83 commented 11 months ago

Hi @pvrwizard @jp-weber,

I have made an attempt to correct this issue, and the fix I have made is preset in the new chocolatey package for the version 1.2.7 beta version. Feel free to try it and to notify me if there is any issue with it (or if everything works correctly :wink:)

jp-weber commented 11 months ago

@Xav83 Thank you! I will test the pre release package 😊

jp-weber commented 11 months ago

Works great, thx! ❤

grafik

Xav83 commented 11 months ago

giphy