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

Options for silent installer to install specific features #177

Open
christophvw opened this issue Apr 14, 2020 · 11 comments
Open

Options for silent installer to install specific features #177

christophvw opened this issue Apr 14, 2020 · 11 comments

Comments

@christophvw
Copy link

I would like to install the feature "create .bat files" as well with a silent install.
But I cannot find any installer parameter to do this.

@chrisbra
Copy link
Member

@christophvw
Copy link
Author

I know how silent install works. But the feature "create .bat files" is not included in the typical install set so it won't get installed with the /S switch.

How to install optional features with the gvim installer in silent mode?

@chrisbra
Copy link
Member

well good, that was not obvious. I don't know the nullsoft installer very well, so I simply don't know. perhaps @k-takata knows.

@k-takata
Copy link
Member

Unfortunately, current installer doesn't support selecting the features with a silent install.

@brettowe
Copy link

brettowe commented Jul 9, 2020

I would also like to see this, to turn off desktop icons.

@k-takata
Copy link
Member

Actually, this is the implementation detail and might be changed in the future, but the selected features will be stored in the registry and they will be loaded at the next time of the installation.

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Vim 8.2]
"vim_compat"="all"
"vim_keyremap"="default"
"vim_mouse"="default"
"select_console"=dword:00000001
"select_batch"=dword:00000000
"select_desktop"=dword:00000001
"select_startmenu"=dword:00000001
"select_editwith"=dword:00000001
"select_vimrc"=dword:00000001
"select_pluginhome"=dword:00000001
"select_pluginvim"=dword:00000000
"select_nls"=dword:00000001

This is the default selection.
If you save this as a *.reg file, edit a selection by a editor, and import this to the registry, then execute an installer with /S, the installer will install based on this selection.

@chrisbra
Copy link
Member

@k-takata should that be put into the wiki here?

@k-takata
Copy link
Member

Hmm, I actually hesitate to do it, because this is the implementation detail as I wrote in the previous comment.
This might (or might not) be changed in the future releases.

I think vim-installer-mui2 had a command line option to select the features. Porting it might be an option, but it needs some work.

(BTW, I found that the silent installation does not correctly select the default _vimrc settings.)

@chrisbra
Copy link
Member

okay understood

@k-takata
Copy link
Member

(BTW, I found that the silent installation does not correctly select the default _vimrc settings.)

I created a PR to fix this: vim/vim#6451.

Porting it might be an option, but it needs some work.

It seems that we can use GetParameters macro and GetOptions macro to get command line options.
https://nsis.sourceforge.io/Docs/AppendixE.html#getparameters
https://nsis.sourceforge.io/Docs/AppendixE.html#getoptions

@Type1JGB
Copy link

From the other comments, I know that you don't want the reg import to be done, but it works, and until there's proper command line arguments, that's what I'll use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants