openvpn-build icon indicating copy to clipboard operation
openvpn-build copied to clipboard

OpenVPN 2.5: How to add his own config file to the msi file

Open ikreb7 opened this issue 4 years ago • 1 comments

Hello guys,

I want to add my ovpn config file to the new 2.5 OpenVPN installer. Is there already any documentation on how I could test this?

I opened the msi file (here OpenVPN-2.5-20200304-amd64-signed.msi) with Microsoft Orca. I tried the following:

  1. Add a row to Component Table. Component: config.my_config.ovpn ComponentId: {12CA....} Directory: CONFIG_DIR Attributes: 256 Condition: KeyPath: my_config.ovpn

  2. Add a row to Feature Component Table: Feature: OpenVPN.Service Component: my_config.ovpn

  3. Add a row to File: File: config.my_config.ovpn Component.config.my_config.ovpn FileName: my_config.ovpn|myconfig.ovp FileSize: 8192 Version: Language: Attributes: 512 Sequence: 41

  4. Modify LastSequence to 41 at the Media table.

If I start the modified msi file I get a corruption error. Do you have any ideas about what I could forget?

Best regards Robert

ikreb7 avatar Jul 17 '20 17:07 ikreb7