Hi Guys,
When I was made a package of Umit Network Scanner in Windows there is a problem annoying me and probably will do it with users:
dnet: Failed to open device eth8
This issue is related with Nmap [0] and Umit Network Scanner need to run in administrator mode in Windows Vista and Windows 7 family.
So how you do that?
There is a article in MSDN [1] talking about that issue, then I was thinking to create a manifest file and put it there. And it seems works nice on Windows 7 and Windows Vista, but not in Window XP. There I got something like:
This application has failed to start because MSVCR90.dll was not found
After saw it I thought that it easier to fix and put the missing dll in the folder, but it still doesn't works:
common error: R6034 - "The application has attempted to load the runtime library incorrectly. Contact support for more information"
Finally I went to py2exe website [2] and I checked out some examples to do UAC - User Account Control in svn version of py2exe [3].
app = dict(script="hello.py",
dest_base="require_admin",
uac_info="requireAdministrator")
Easier no? :)
This fix was applied in r5320 [4].
[0] -
www.nmap.org
[1] -
http://msdn.microsoft.com/en-us/library/bb756929.aspx
[2] -
www.py2exe.org
[3] -
http://py2exe.svn.sourceforge.net/viewvc/py2exe/trunk/py2exe/py2exe/samples/user_access_control/
[4] - http://trac.umitproject.org/changeset/5320
Cheers!