Bug #1898

Client Export on 2.0 Release creates corrupted Windows installers

Added by Dim Hatz about 9 years ago. Updated about 8 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
Affected Architecture:


The first few bytes of the corrupted executable are

.Warning: Missing argument 8 for openvpn_client_export_installer(), called in /usr/local/www/vpn_openvpn_export.php on line 336 and defined in /usr/local/pkg/ on line 278.MZ..........

This message doesn't appear in the working executable.

Issue is discussed and a possible fix is proposed in,41180.0.html


#1 Updated by Jim Pingle about 9 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Applied in changeset commit:6be59d2855f40efaae5b2823df8f79a9a5d8a1df.

#2 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

#3 Updated by c c about 8 years ago

This issue is appearing again on 2.0.1 with the new 0.26 client export. Was working previously on 0.24, uninstalled and updated to 0.26 and all exported executables are corrupted. When run from console, I get "program too big to fit in memory" (Windows XP x86, with either 2.2 or 2.3 beta export).

#4 Updated by c c about 8 years ago

Also, as with the error above, here is the first few line of the generated executable when viewed from notepad:

Warning: rename(openvpnmanager/openvpn-postinstall.exe,openvpn-postinstall.exe): No such file or directory in /usr/local/pkg/ on line 525 MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode.

#5 Updated by Jim Pingle about 8 years ago

Can you reinstall the package and try again? The server that runs was switched the other day and I think the one that's active now had an out-of-date version of that archive. I uploaded a fresh copy just now.

#6 Updated by c c about 8 years ago

Update the second, it looks like removing the top two lines of the executable down to "on line 525" uncorrupts the exe.

#7 Updated by c c about 8 years ago

Thanks, that did it.

Also available in: Atom PDF