run as admin

Hi all.

I created my standalones with py2exe, including a manifest

to keep the XP look and feel and i build my package using Inno Setup.

For some users who have installed my application happens that they fail to launch the application by clicking on the icon but only by right clicking and “run as administrator” on the Section menu.

How can I avoid everything.

Here it is setup.py:

from distutils.core import setup

import py2exe

import os

import re

import shutil

src.append((“language”,[“language/italian”, “language/english”]))

src.append(("",[“readme.txt”, “license.txt”]))

#src.append((“sys\etc\lobb1\lib\sys\data”,[]))

#src.append((“sys\file”,[]))

manifest = “”"

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns=“urn:schemas-microsoft-com:asm.v1”

manifestVersion=“1.0”>

<assemblyIdentity

version=“0.64.1.0”

processorArchitecture=“x86”

name=“Controls”

type=“win32”

/>

Your Application

<assemblyIdentity

type=“win32”

name=“Microsoft.Windows.Common-Controls”

version=“6.0.0.0”

processorArchitecture=“X86”

publicKeyToken=“6595b64144ccf1df”

language="*"

/>

“”"

RT_MANIFEST = 24

setup(

options = {“py2exe”: {“compressed”: 1,

“optimize”: 2}},

version = “1.9.73”,

description = “sqlwxpy application”,

name = “sqlwxpy application”,

zipfile = “lib/shardlib”,

windows = [{“script”: “SqliteRoot.py”,“icon_resources”:[(0x0001,“icon.ico”)],

“other_resources”:[(RT_MANIFEST, 1, manifest)]}],

data_files = src

)

shutil.copy(‘SqliteRoot.iss’,‘dist’)

shutil.copy(‘readme.txt’,‘dist’)

shutil.copy(‘license.txt’,‘dist’)

shutil.copy(‘logo.ico’,‘dist’)

···


Fabio Spadaro

Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:

www.sqliteroot.com

This sure looks like a InnoSetup issue, not a py2exe one, and
certainly not a wxPyton one.

-Chris

···

On Wed, Feb 1, 2012 at 2:36 AM, Fabio Spadaro <fabiolinospad@gmail.com> wrote:

Hi all.

I created my standalones with py2exe, including a manifest
to keep the XP look and feel and i build my package using Inno Setup.

For some users who have installed my application happens that they fail to
launch the application by clicking on the icon but only by right clicking
and "run as administrator" on the Section menu.
How can I avoid everything.

Here it is setup.py:

from distutils.core import setup
import py2exe
import os
import re
import shutil

src.append(("language",["language/italian", "language/english"]))
src.append(("",["readme.txt", "license.txt"]))

#src.append(("sys\\etc\\lobb1\\lib\\sys\\data",))
#src.append(("sys\\file",))

manifest = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="0.64.1.0"
processorArchitecture="x86"
name="Controls"
type="win32"
/>
<description>Your Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
"""

RT_MANIFEST = 24

setup(
options = {"py2exe": {"compressed": 1,
"optimize": 2}},
version = "1.9.73",
description = "sqlwxpy application",
name = "sqlwxpy application",

zipfile = &quot;lib/shardlib&quot;,

windows = \[\{&quot;script&quot;:

"SqliteRoot.py","icon_resources":[(0x0001,"icon.ico")],
"other_resources":[(RT_MANIFEST, 1, manifest)]}],
data_files = src
)

shutil.copy('SqliteRoot.iss','dist')
shutil.copy('readme.txt','dist')
shutil.copy('license.txt','dist')
shutil.copy('logo.ico','dist')

--
Fabio Spadaro

Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:
www.sqliteroot.com

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov