Installed by Admin, Won't run for user

GrexD

Well-known member
Joined
Mar 5, 2008
Messages
95
Programming Experience
Beginner
I think this has to do with a third party OCX control. Below is the output when the application starts.

When I install my application on a stand-alone PC or most PCs in a networked environment it runs fine. When I go to some offices that have very tightly controlled networks I have problems.

The set up won't run under the user name so someone from IT must log in as administrator. They run the set up and the application installs and runs fine. The IT person logs off and the user tries to run it and the application won't even start. An error box appears and below is the report.

SCANNERLib.DLL is the third party control. Maybe there is something I'm missing when I compile. Maybe the DLL registering funny under the Admin rights. Any help is appreciated.



VB.NET:
<?xml version="1.0" encoding="UTF-16"?> <DATABASE> <EXE NAME="IRISScan.exe" 
FILTER="GRABMI_FILTER_PRIVACY"> <MATCHING_FILE NAME="AxInterop.SCANNERLib.DLL" 
SIZE="36864" CHECKSUM="0xBDF4A056" BIN_FILE_VERSION="1.0.0.0" 
BIN_PRODUCT_VERSION="1.0.0.0" PRODUCT_VERSION="1.0.0.0" FILE_DESCRIPTION=" " 
FILE_VERSION="1.0.0.0" ORIGINAL_FILENAME="AxInterop.SCANNERLib.dll" 
INTERNAL_NAME="AxInterop.SCANNERLib.dll" LEGAL_COPYRIGHT=" " VERFILEDATEHI="0x0" 
VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" 
PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.0" 
UPTO_BIN_PRODUCT_VERSION="1.0.0.0" LINK_DATE="07/14/2009 21:42:17" 
UPTO_LINK_DATE="07/14/2009 21:42:17" VER_LANGUAGE="Language Neutral [0x0]" /> 
<MATCHING_FILE NAME="Interop.SCANNERLib.DLL" SIZE="36864" CHECKSUM="0x156B18B2" 
BIN_FILE_VERSION="1.0.0.0" BIN_PRODUCT_VERSION="1.0.0.0" 
PRODUCT_VERSION="1.0.0.0" FILE_DESCRIPTION=" " COMPANY_NAME=" " 
PRODUCT_NAME="Assembly imported from type library 'SCANNERLib'." 
FILE_VERSION="1.0.0.0" ORIGINAL_FILENAME="Interop.SCANNERLib.dll" 
INTERNAL_NAME="Interop.SCANNERLib" LEGAL_COPYRIGHT=" " VERFILEDATEHI="0x0" 
VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" 
PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.0" 
UPTO_BIN_PRODUCT_VERSION="1.0.0.0" LINK_DATE="07/21/2009 20:42:05" 
UPTO_LINK_DATE="07/21/2009 20:42:05" VER_LANGUAGE="Invariant Language (Invariant 
Country) [0x7f]" /> <MATCHING_FILE NAME="IRISScan.exe" SIZE="81920" 
CHECKSUM="0xCFDFAA2A" BIN_FILE_VERSION="1.0.3538.24571" 
BIN_PRODUCT_VERSION="1.0.3538.24571" PRODUCT_VERSION="1.0.3538.24571" 
FILE_DESCRIPTION="IRIS Scan" COMPANY_NAME="The Humboldt IPA" PRODUCT_NAME="IRIS 
Scan" FILE_VERSION="1.0.3538.24571" ORIGINAL_FILENAME="IRISScan.exe" 
INTERNAL_NAME="IRISScan.exe" LEGAL_COPYRIGHT="Copyright © 2009" 
VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" 
MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" 
UPTO_BIN_FILE_VERSION="1.0.3538.24571" UPTO_BIN_PRODUCT_VERSION="1.0.3538.24571" 
LINK_DATE="09/08/2009 21:47:09" UPTO_LINK_DATE="09/08/2009 21:47:09" 
VER_LANGUAGE="Language Neutral [0x0]" /> </EXE> <EXE NAME="KERNEL32.dll" 
FILTER="GRABMI_FILTER_THISFILEONLY"> <MATCHING_FILE NAME="kernel32.dll" 
SIZE="989696" CHECKSUM="0x2D998938" BIN_FILE_VERSION="5.1.2600.5781" 
BIN_PRODUCT_VERSION="5.1.2600.5781" PRODUCT_VERSION="5.1.2600.5781" 
FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft 
Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" 
FILE_VERSION="5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)" 
ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© 
Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" 
VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" 
PE_CHECKSUM="0xFE572" LINKER_VERSION="0x50001" 
UPTO_BIN_FILE_VERSION="5.1.2600.5781" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5781" 
LINK_DATE="03/21/2009 14:06:58" UPTO_LINK_DATE="03/21/2009 14:06:58" 
VER_LANGUAGE="English (United States) [0x409]" /> </EXE> <EXE 
NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY"> <MATCHING_FILE 
NAME="kernel32.dll" SIZE="989696" CHECKSUM="0x2D998938" 
BIN_FILE_VERSION="5.1.2600.5781" BIN_PRODUCT_VERSION="5.1.2600.5781" 
PRODUCT_VERSION="5.1.2600.5781" FILE_DESCRIPTION="Windows NT BASE API Client 
DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® 
Operating System" FILE_VERSION="5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)" 
ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© 
Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" 
VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" 
PE_CHECKSUM="0xFE572" LINKER_VERSION="0x50001" 
UPTO_BIN_FILE_VERSION="5.1.2600.5781" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5781" 
LINK_DATE="03/21/2009 14:06:58" UPTO_LINK_DATE="03/21/2009 14:06:58" 
VER_LANGUAGE="English (United States) [0x409]" /> </EXE> </DATABASE>
 
It seems to be an issue ready/writing to the registry. Since other apps must be reading and writing to the registry (MS Words most recent file list, for instance) it seems like it is something I need to do either during installation or after wards. What I'm supposed to do is the question. How do I change the security policy for my application without needed to have the IT Dept change the user's permission level?

Greg
 
I gave up. After trying a lot of BS with the Microsoft .NET Framework 2.0 Configuration tool, I cut out all of the registry code and used an INI file instead. Everything works on a restricted user account.
 
Back
Top