Hi

Two requests:

1:  Prebuilt openvpn for RC12 (and upcoming releases)
I want to include my own configuration files in the installer.
Can someone upload to: https://secure.openvpn.net/devel/ when a new
release/bugfix is released?
Please...

2: Add support for UAC(if:enabled) in Vista: Set "RUNASADMIN" for the
GUI in the installer.
(When connecting to OpenVPN in Vista I need admin-rights to set
routes.)
I have included some code in the openvpn.nsi, but i don't know if this
is the best way to solve the problem. 

; tap-64bit:

  DetailPrint "We are running on a 64-bit system."
  SetRegView 64
  WriteRegStr HKLM "Software\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers"
"$INSTDIR\bin\openvpn-gui-1.0.3.exe" "RUNASADMIN"
  SetRegView 32

  SetOutPath "$INSTDIR\bin"

  File "${GEN}\tapinstall\amd64\tapinstall.exe"

  SetOutPath "$INSTDIR\driver"

  File "${GEN}\driver\amd64\OemWin2k.inf"
  File "${GEN}\driver\amd64\${PRODUCT_TAP_ID}.cat"
  File "${GEN}\driver\amd64\${TAPDRV}"

goto tapend

tap-32bit:

  DetailPrint "We are running on a 32-bit system."
  WriteRegStr HKLM "Software\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers"
"$INSTDIR\bin\openvpn-gui-1.0.3.exe" "RUNASADMIN"

  SetOutPath "$INSTDIR\bin"
  File "${GEN}\tapinstall\i386\tapinstall.exe"

  SetOutPath "$INSTDIR\driver"
  File "${GEN}\driver\i386\OemWin2k.inf"
  File "${GEN}\driver\i386\${PRODUCT_TAP_ID}.cat"
  File "${GEN}\driver\i386\${TAPDRV}"

  tapend:

This works on both 32- and 64-bit Vista
(I can't see that this would cause problems for XP)
So my question is: 
Can this be included in the source?

Svein Hansen

Reply via email to