|
-
Mar 24th, 2007, 09:16 AM
#1
Thread Starter
New Member
deployment to XP only runs with admin privilege
Hi,
this might be a fairly stupid question, but advice would be welcome.
We've produced a simple VB6 app that talks to a Silabs UART->USB device via a virtual comport. We've pacaged it with the satndard deployment wizard to result in a silabs DLL being placed in the target installation directory (silabs says this required.
When installed on a new machine it works fine for administrator accounts but generates DLL errors (can't open port) for user accounts.
Any advice?
Many thanks,
Mark.
-
Mar 24th, 2007, 10:51 AM
#2
Re: deployment to XP only runs with admin privilege
Welcome to the Forums.
Thats because Limited Accounts in XP have permission restrictions to the Windows and System32 directory which is necessary to install dependancy files for apps. Also, to register the dlls and ocxs they need permissions to read/write to the registry.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 24th, 2007, 03:18 PM
#3
Thread Starter
New Member
Re: deployment to XP only runs with admin privilege
many thanks for the prompt welcome & reply.....
Thats because Limited Accounts in XP have permission restrictions to the Windows and System32 directory which is necessary to install dependancy files for apps. Also, to register the dlls and ocxs they need permissions to read/write to the registry.[/color][/QUOTE]
Just to be sure I'm clear, I'm not having problems with installing from a limited account, but rather running from one once I've installed from an administrator one. In fact I even made a new, second, administrator one after installing & it runs fine from there as well.
I got the impression that you were discussing installing rather than running: am I correct (& if so can you still help!)?
Thanks,
-
Mar 24th, 2007, 05:43 PM
#4
Re: deployment to XP only runs with admin privilege
Yes, but if your app access certain protected areas they will fail unless they are admins. I dont know all that your app does so I can only generalize.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 25th, 2007, 09:02 AM
#5
Thread Starter
New Member
Re: deployment to XP only runs with admin privilege
hi,
thanks for further reply. After some time on the web yesterday (UK) evening I concluded the same. In fact the Silabs DLL we use queries the registry to get COM ports associated with USB PID's (for a virtual COM port). I guess this is where the issue lies. I'll contact the Silabs tech support people. Ultimately it's not a problem - I just wanted to be good and let (research) end user run program without admin privileges.
(however, on Tuesday it might get demoed on a Vista machine.......I don't want to think about that now......!)
I really appreciate your taking the trouble to reply.
Mark.
-
Mar 25th, 2007, 11:19 PM
#6
Re: deployment to XP only runs with admin privilege
Since you are using a third party component its very unlikely that you will be able to code around it. You may have to recreate the functions and features of the dll as a workaround so you can elevate the HKLM registry reads and what nots.
The problem is that when the component tries to read/write to the registry in areas other then the HKCU, Vista will use Registry Virtualization where it will "redirect" the write from HKLM (for example) to a different safe authorized location under the HKCU.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|