Page 1 of 1

Pass parameters to MSI installer

Posted: Thu Aug 20, 2020 3:02 pm
by AlexLux
Hello,
i'm trying to pass parameters to OpenVPN-2.5-beta1-amd64.msi, but it has no effect. I need to install Open VPN with no GUI/services on client side.
I've tried variants:

Code: Select all

msiexec.exe /i d:\OpenVPN-2.5-beta1-amd64.msi /qn /norestart /log d:\log.log SELECT_SHORTCUTS=0 SELECT_SERVICE=0 SELECT_OPENVPNGUI=0 SELECT_ASSOCIATIONS=0 SELECT_OPENSSL_UTILITIES=0 SELECT_LAUNCH=0
and

Code: Select all

msiexec.exe /i d:\OpenVPN-2.5-beta1-amd64.msi /qn /norestart /log d:\log.log WRAPPED_ARGUMENTS="/S /SELECT_SHORTCUTS=0 /SELECT_SERVICE=0 /SELECT_OPENVPNGUI=0 /SELECT_ASSOCIATIONS=0 /SELECT_OPENSSL_UTILITIES=0 /SELECT_LAUNCH=0"
, but GUI was installed anyway.
When i use NSIS installer (ver 2.4.9), it works great - no GUI is installed.
Where did i go wrong?

Re: Pass parameters to MSI installer

Posted: Thu Aug 20, 2020 5:18 pm
by TinCanTech
This may not have been implemented in the MSI installer, yet..

Re: Pass parameters to MSI installer

Posted: Fri Aug 21, 2020 8:24 am
by AlexLux
How to know it for sure?

Re: Pass parameters to MSI installer

Posted: Tue Sep 29, 2020 10:19 pm
by cyn3rgy
Alexlux, did you find a solution to this? I'm also trying to build a silent install package. I tried using Orca but can't see any arguments in the msi. I'm about to go back to the last NSIS installer and build off that. Wondering if you found a solution?

thanks

Re: Pass parameters to MSI installer

Posted: Tue Sep 29, 2020 10:51 pm
by TinCanTech
See the source.

Re: Pass parameters to MSI installer

Posted: Fri Oct 30, 2020 8:20 am
by AlexLux
I didn't find the solution. As i understand This is not implemented in the MSI installer. I use NSIS installers.

Re: Pass parameters to MSI installer

Posted: Fri Nov 06, 2020 6:04 pm
by vandreytrindade
Anything about this?
On this link (https://community.openvpn.net/openvpn/w ... IInstaller) they say:
"The documentation and instructions on how to deploy, transform, or parameterize MSI packages should be published on Wiki and/or in the openvpn-build readme."
But I wasn't able to find any documentation about MSI parameters.

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 6:43 pm
by bartonn23
Since the openvpn project has not provided documentation yet for the 2.5 MSI installation parameters I did a deep dive into MSI installers in general and found that there is a simple work around which I detail in a blog post:

https://www.cohesive.net/openvpn-2_5-windows-parameters

Cheers,

-Barton Nicholls

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 6:59 pm
by Pippin
@bartonn23
Since this is not the first time, you are very close to being a spammer...

Edited your post.

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 7:58 pm
by bartonn23
@Pippin

My apologies if I have offended. I was just trying to give back to the community as this question has not been answered in 3 months. Being able to automate the installation of 2.5 specifically to utilize the wintun driver was a necessity for us. It seems like it was holding up some other folks as well. Maybe you could run this up the flag and see if these directions could make it into the wiki as I'm sure it would be of great use to the community at large.

Cheers,

-Barton

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 8:10 pm
by Pippin
I was just trying to give back to the community
That is appreciated.
Promoting a company is not.

All good.

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 8:28 pm
by TinCanTech
Pippin wrote:
Thu Nov 19, 2020 8:10 pm
Promoting a company is not.
I have seen far worse on this forum and it has been left as is precisely because it offers advice to the community.

Personally, I do not find this thread to be spam.

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 8:41 pm
by Pippin
Well, the link to the article written by bartonn23 is still there.
The sentences posted were advertising, that I removed.

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 8:45 pm
by TinCanTech
Pippin wrote:
Thu Nov 19, 2020 8:41 pm
The sentences posted were advertising, that I removed.
I presume then that there were no other URLs and that you have censored simple text ?

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 8:49 pm
by Pippin
I presume then that there were no other URLs and that you have censored simple text ?
Top
Yes, correct.
.
see if these directions could make it into the wiki
Will see if I can get it in there coming week but you're welcome to do it yourself too.

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 8:58 pm
by TinCanTech
Pippin wrote:
Thu Nov 19, 2020 8:49 pm
I presume then that there were no other URLs and that you have censored simple text ?
Top
Yes, correct.
.
Sounds too heavy handed to me.

Re: Pass parameters to MSI installer

Posted: Thu Nov 19, 2020 9:00 pm
by TinCanTech
bartonn23 wrote:
Thu Nov 19, 2020 6:43 pm
Since the openvpn project has not provided documentation yet for the 2.5 MSI installation parameters I did a deep dive into MSI installers in general and found that there is a simple work around which I detail in a blog post:

https://www.cohesive.net/openvpn-2_5-windows-parameters

Cheers,

-Barton Nicholls
Thanks for this. You could also write a wiki article and link to your blog on that.

Re: Pass parameters to MSI installer

Posted: Sat Nov 21, 2020 5:38 pm
by Pippin
bartonn23 wrote:
Thu Nov 19, 2020 7:58 pm
Maybe you could run this up the flag and see if these directions could make it into the wiki as I'm sure it would be of great use to the community at large.
Added the article:
https://community.openvpn.net/openvpn/w ... ed_Install

Thanks.