* [Openvpn-devel] Building a Windows installer.
@ 2008-12-19 13:04 Svein Hansen
0 siblings, 0 replies; 2+ messages in thread
From: Svein Hansen @ 2008-12-19 13:04 UTC (permalink / raw)
To: openvpn-devel
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.orig 2008-12-19 13:49:05.000000000 +0100
+++ openvpn.nsi 2008-12-19 08:33:28.000000000 +0100
@@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Openvpn-devel] Building a Windows installer.
@ 2008-12-19 15:21 Svein Hansen
0 siblings, 0 replies; 2+ messages in thread
From: Svein Hansen @ 2008-12-19 15:21 UTC (permalink / raw)
To: openvpn-devel
[-- Attachment #1: Type: text/plain, Size: 3368 bytes --]
>>> Den 19. desember 2008 kl. 15:27, i meldingen
<494BAF50.5000306@...1172...>,
skrev "Dennis P. Nikolaenko" <dennis@...1172...>:
> Svein Hansen wrote:
>>
>>>>> Den 19. desember 2008 kl. 14:36, i meldingen
>>>>>
>> <494BA351.8060303@...1172...>,
>> skrev "Dennis P. Nikolaenko" <dennis@...1172...>:
>>
>>> Svein Hansen wrote:
>>>
>>>> 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..
>>>>
>>> IMO a better option would be to include a manifest instead of
>>>
>> polluting
>>
>>> application compatibility database in registry.
>>> --
>>> Dennis
>>>
>>
>> I have tried to add a manifest, but that creates a new issue about
>> signing.
>> (I'm clearly not an expert on manifests...)
>>
>> * openvpn-gui-1.0.3.exe.manifest:
>> Executable: openvpn-gui-1.0.3.exe
>> Manifest:openvpn-gui-1.0.3.exe.manifest
>> openvpn-gui manifest file:
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
>> manifestVersion="1.0">
>> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
>> <security>
>> <requestedPrivileges>
>> <requestedExecutionLevel
>> level="requireAdministrator"
>> uiAccess="false"/>
>> </requestedPrivileges>
>> </security>
>> </trustInfo>
>> </assembly>
>>
>> Then:
>> C:\manifest>mt.exe -manifest openvpn-gui-1.0.3.exe.manifest
>> -outputresource:openvpn-gui-1.0.3.exe
>> Microsoft (R) Manifest Tool version 5.2.3790.2075
>> Copyright (c) Microsoft Corporation 2005.
>>
>> Now openvpn-gui-1.0.3.exe is elevated to "requireAdministrator".
>>
>> But, when starting the GUI I get:
>> An unidentified program wants access to your computer
>> Unidentified Publisher
>> -> Cancel
>> -> Allow
> You should get the same (orange color) error, when building the
binary
> yourself, unless you take it from the official distribution and you
seem
> to have taken it from there...
> If you sign the binary with a code signing certificate which is is in
> turn signed by a trusted root CA, you would get a "good" UAC prompt
for
> a signed application. You have to buy a code signing certificate from
a
> preinstalled CA or install self-generated CA on all you client
machines.
> From a signing point view, yes app compat solution is better as it
does
> not require any additional "acrobatics". Just ensure that app compat
> entry is removed when OpenVPN GUI is uninstalled.
> --
> Dennis
Thanks for the enlightenment :-)
Maybe this is something for the OpenVPN developers to dive into?
There must be several sysadmins that would like to see this included in
the
official distribution. Or?
One vote from me..
Svein Hansen
[-- Attachment #2: HTML --]
[-- Type: text/html, Size: 6025 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-19 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-19 13:04 [Openvpn-devel] Building a Windows installer Svein Hansen
-- strict thread matches above, loose matches on Subject: below --
2008-12-19 15:21 Svein Hansen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.