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

install Windows App in user account #140

Open
1 of 2 tasks
AiguoYan opened this issue Mar 9, 2023 · 4 comments
Open
1 of 2 tasks

install Windows App in user account #140

AiguoYan opened this issue Mar 9, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@AiguoYan
Copy link

AiguoYan commented Mar 9, 2023

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

The Windows version of the App requests admin right to install. For people working on company PCs, they don't have admin right to install it. I wonder if you can allow the windows version of the app installable in a normal user account.

Many thanks!

Solution

No response

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@AiguoYan AiguoYan added the enhancement New feature or request label Mar 9, 2023
@wanmyj
Copy link

wanmyj commented Mar 10, 2023

I think this is a really good suggestion, and I may spend sometime working on it

@cmj2002
Copy link

cmj2002 commented Mar 21, 2023

Any updates on this feature?

@cmj2002
Copy link

cmj2002 commented Mar 21, 2023

I have successfully installed the app in user account by running powershell command:

msiexec.exe /i OpenAI.Translator.msi INSTALLDIR=$env:USERPROFILE\OpenAITranslator\ MSIINSTALLPERUSER=1 ALLUSERS=2

Not sure if it works for everyone, but it works for me. You can change the value of INSTALLDIR to any directory where you have permission to write.

I am not familiar with Tauri, but I believe there is a place where you can set the default values for MSIINSTALLPERUSER and ALLUSERS, so that we don't need command line to install the app in user accounts.

References:

  1. Command line options of msiexec.exe
  2. MSIINSTALLPERUSER
  3. ALLUSERS

@cmj2002
Copy link

cmj2002 commented Mar 21, 2023

I am not familiar with Tauri, but I believe there is a place where you can set the default values for MSIINSTALLPERUSER and ALLUSERS, so that we don't need command line to install the app in user accounts.

Found it! The support of installing tauri app in user account has been merged into tauri v2 and might be released when the v2 is released.

I suggest adding these to the README:

  • The command line installation method for non-administrator users (after some tests)
  • The reasons why direct installation is currently not supported

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

No branches or pull requests

3 participants