Skip to contentSkip to conversation

Building a Windows installer.

Openvpn-devel Svein Hansen 1 participant 1 message Dec 19, 2008

lore
Share & tools
lore
#0 lore raw

Hi

When doing a ./domake-win I get some errors:

*
install-win32/buildinstaller: /c/Program Files/NSIS/makensis: No such file or directory
I'm using a Norwegian version of XP.
So the correct path for me is: /c/Programfiler/NSIS/makensis Maybe this should be fixed to also work for localized versions of Windows?

*
FunctionEnd
!define: "SF_SELECTED" already defined!
Error in script "openvpn.nsi" on line 265 -- aborting creation process Is IT safe to just comment out the line?: #!define SF_SELECTED 1

So a request...:
On Vista, users need to run OpenVPN as administrator(to set routes) Can this feature be added to the source?
( or is there a reason that it's not included? )

It would have been nice if the users didn't have to fix this themselves.
(right-click on icon, set to "run as admin..")

I've added some code in openvpn.nsi:

openvpn.nsi 2008-12-19 08:33:28.000000000 +0100 renamed from openvpn.nsi.orig 2008-12-19 13:49:05.000000000 +0100 +3 -0
@@ -426,6 +426,10 @@
 ; 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"

@@ -442,6 +446,8 @@
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"

This is maybe not the best way to do it...but it works..

Svein Hansen