Hi all. My application (downloaded at www.sqliteroot.com) is compiled with py2exe and redistributed with inno setup. 
Some users have said that after the application is installed on c: \program(x86)\sqliteroot launch the executable and show the message "not write in c: \program (x86)\sqlite Root\sqliteroot.exe.log permission denied ". I know it's a problem related to the write permissions on c:\program (x86).
But I know who writes the file sqliteroot.exe.log and why I get this error since I set in the manifest:
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>

Around the problem I set in the DefaultDirName of .iss userprograms {} instead of {pf}

Follow setup.py:
from distutils.core import setup
import py2exe
import os
import re
import shutil
from glob import glob
import py_compile

VERSION = "1.9.7.4"

src = ['core.pyc']

dd = ("lib", #Microsoft.VC90.CRT",
      glob(r'man/*.*'))

#  + man
#  |
#  |---- m.manifest
#  |---- msvcm90.dll
#  |---- msvcp90.dll
#  |---- msvcr90.dll
#
src.append(dd)

setup(
    options = {"py2exe": {"compressed": 1,"optimize": 2}},
    version = VERSION,
    description = "Sqlite Root application",
    name = "sqlwxpy Root application",
    zipfile = "lib/shardlib",
    windows = [{"script": "SqliteRoot.py","icon_resources":[(0x0001,"logo.ico")] }] ,
    data_files = src
)


Follow m.manifest in man:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <noInheritable></noInheritable>
    <assemblyIdentity type="win32" name="m. manifest" version="9.0.30729.1" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b">
</assemblyIdentity>

    <dependency>
        <dependentAssembly>
            <assemblyIdentity
                 type="win32"
                 name="Microsoft.Windows.Common-Controls"
                 version="6.0.0.0"
                 publicKeyToken="6595b64144ccf1df"
                 language="*"
                 processorArchitecture="x86"/>
        </dependentAssembly>
    </dependency>

    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
          <requestedPrivileges>
            <requestedExecutionLevel
              level="asInvoker"
              uiAccess="false"/>
            </requestedPrivileges>
           </security>
    </trustInfo>




    <file name="msvcr90.dll" hashalg="SHA1" hash="9785b1c493deb5b2134dc4aef3719cee207001bc">
<asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
<dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod>
<dsig:DigestValue>VF5ECUAHPV7EnUf+/UIXMPizPvs=</dsig:DigestValue>
</asmv2:hash>
</file> 
<file name="msvcp90.dll" hashalg="SHA1" hash="0f6bbf7fe4fb3fca2cb5b542eca1a1cad051f01c">
<asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
<dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod>
<dsig:DigestValue>3Wg+StVMq2uhx7POnAkl2w4dDmY=</dsig:DigestValue>
</asmv2:hash>
</file> 
<file name="msvcm90.dll" hashalg="SHA1" hash="7f3290ab2b7444c2b4a9b1fedfdb16466d7a21bb">
<asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
<dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod>
<dsig:DigestValue>/YfRn7UQENzdMeoMHxTgdRMiObA=</dsig:DigestValue>
</asmv2:hash>
</file>
</assembly>


--
Fabio Spadaro

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