Pass parameters to MSI installer

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
AlexLux
OpenVpn Newbie
Posts: 3
Joined: Thu Aug 20, 2020 2:42 pm

Pass parameters to MSI installer

Post by AlexLux » Thu Aug 20, 2020 3:02 pm

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?
Last edited by Pippin on Thu Aug 20, 2020 3:28 pm, edited 1 time in total.
Reason: Formatting

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8348
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pass parameters to MSI installer

Post by TinCanTech » Thu Aug 20, 2020 5:18 pm

This may not have been implemented in the MSI installer, yet..

AlexLux
OpenVpn Newbie
Posts: 3
Joined: Thu Aug 20, 2020 2:42 pm

Re: Pass parameters to MSI installer

Post by AlexLux » Fri Aug 21, 2020 8:24 am

How to know it for sure?

cyn3rgy
OpenVpn Newbie
Posts: 1
Joined: Tue Sep 29, 2020 10:12 pm

Re: Pass parameters to MSI installer

Post by cyn3rgy » Tue Sep 29, 2020 10:19 pm

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8348
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pass parameters to MSI installer

Post by TinCanTech » Tue Sep 29, 2020 10:51 pm

See the source.

AlexLux
OpenVpn Newbie
Posts: 3
Joined: Thu Aug 20, 2020 2:42 pm

Re: Pass parameters to MSI installer

Post by AlexLux » Fri Oct 30, 2020 8:20 am

I didn't find the solution. As i understand This is not implemented in the MSI installer. I use NSIS installers.

User avatar
vandreytrindade
OpenVpn Newbie
Posts: 13
Joined: Sun Jul 26, 2015 1:14 pm

Re: Pass parameters to MSI installer

Post by vandreytrindade » Fri Nov 06, 2020 6:04 pm

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.

bartonn23
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 19, 2020 6:34 pm

Re: Pass parameters to MSI installer

Post by bartonn23 » 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

User avatar
Pippin
Forum Team
Posts: 956
Joined: Wed Jul 01, 2015 8:03 am

Re: Pass parameters to MSI installer

Post by Pippin » Thu Nov 19, 2020 6:59 pm

@bartonn23
Since this is not the first time, you are very close to being a spammer...

Edited your post.

bartonn23
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 19, 2020 6:34 pm

Re: Pass parameters to MSI installer

Post by bartonn23 » Thu Nov 19, 2020 7:58 pm

@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

User avatar
Pippin
Forum Team
Posts: 956
Joined: Wed Jul 01, 2015 8:03 am

Re: Pass parameters to MSI installer

Post by Pippin » Thu Nov 19, 2020 8:10 pm

I was just trying to give back to the community
That is appreciated.
Promoting a company is not.

All good.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8348
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pass parameters to MSI installer

Post by TinCanTech » Thu Nov 19, 2020 8:28 pm

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.

User avatar
Pippin
Forum Team
Posts: 956
Joined: Wed Jul 01, 2015 8:03 am

Re: Pass parameters to MSI installer

Post by Pippin » Thu Nov 19, 2020 8:41 pm

Well, the link to the article written by bartonn23 is still there.
The sentences posted were advertising, that I removed.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8348
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pass parameters to MSI installer

Post by TinCanTech » Thu Nov 19, 2020 8:45 pm

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 ?

User avatar
Pippin
Forum Team
Posts: 956
Joined: Wed Jul 01, 2015 8:03 am

Re: Pass parameters to MSI installer

Post by Pippin » 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.
.
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.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8348
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pass parameters to MSI installer

Post by TinCanTech » Thu Nov 19, 2020 8:58 pm

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.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8348
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pass parameters to MSI installer

Post by TinCanTech » Thu Nov 19, 2020 9:00 pm

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.

User avatar
Pippin
Forum Team
Posts: 956
Joined: Wed Jul 01, 2015 8:03 am

Re: Pass parameters to MSI installer

Post by Pippin » Sat Nov 21, 2020 5:38 pm

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.

Post Reply