|
-
Nov 12th, 2008, 04:28 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Vista - Vb app. problem
Hi,
Well i read some posts on the forum regarding troubels on vista with VB.
Well my app works fine but..but...but...You have to open the app as RUN as admin...
Is there a way to prevent that...and just open the app without always goin to the right mouse click?
Thanks
-
Nov 12th, 2008, 04:44 AM
#2
Re: Vista - Vb app. problem
find out what part needs admin permissions and change that part of your app, maybe you are trying to write to disallowed folders
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Nov 12th, 2008, 05:05 AM
#3
Thread Starter
Hyperactive Member
Re: Vista - Vb app. problem
Possbile, because the app donwloads missing componenets directly to the system path... hmmm
And how to fix that, because ocx has to be in system32
-
Nov 12th, 2008, 06:32 AM
#4
Re: Vista - Vb app. problem
the ocx should be installed when the program is installed, not each time the program is run
also folders in program files are protected so saving to app.path is no longer a good idea
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Nov 12th, 2008, 07:41 AM
#5
Re: Vista - Vb app. problem
 Originally Posted by westconn1
also folders in program files are protected so saving to app.path is no longer a good idea
It wasn't a good idea before - it has been against Windows guidelines for at least 10 years (including the Windows 2000 guidelines came with VB6), and has always been capable of causing problems when security has been enforced.
-
Nov 12th, 2008, 04:41 PM
#6
Re: Vista - Vb app. problem
I have overcome my program updater by putting the ocx's into a custom resource then from sub main if they are not found they are extracted and registered. No need to download other files
Waiting for a full featured smart phone with out marrying a provider
Go Android
Go raiders 
-
Nov 12th, 2008, 04:42 PM
#7
Thread Starter
Hyperactive Member
Re: Vista - Vb app. problem
-
Nov 12th, 2008, 04:48 PM
#8
Re: Vista - Vb app. problem
 Originally Posted by batori
i dont understand?? :S
The part i posted has nothing to do with vista. Although I have read that if you install to a folder on the root of vista and not program files you eliminate a lot of hassle. I haven't tried it yet
Waiting for a full featured smart phone with out marrying a provider
Go Android
Go raiders 
-
Nov 12th, 2008, 04:55 PM
#9
Re: Vista - Vb app. problem
You cannot bypass the admin login prompt unless you are the admin. What your suggesting is to revert back to legacy days of every user running as an admin. This is bad as a security exception and bad practice too.
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 
-
Nov 13th, 2008, 02:40 PM
#10
Thread Starter
Hyperactive Member
Re: Vista - Vb app. problem
Well personally i dont like vista because i dont think it recognizes bad treats from "good" threats...
Well i think ill make this app only for the older systems...
-
Nov 13th, 2008, 02:42 PM
#11
Lively Member
Re: Vista - Vb app. problem
right click the program, properties, then compatability.
Check the checkbox saying "Run program as administrator"
Then it will automatically run as admin whenever you click on it =)
-
Nov 13th, 2008, 02:44 PM
#12
Thread Starter
Hyperactive Member
Re: Vista - Vb app. problem
great...i'll let the users who run Vista about that thing .....
i dont use vista :S
Thanks
-
Nov 13th, 2008, 02:46 PM
#13
Lively Member
Re: Vista - Vb app. problem
sorry man, didnt read the whole thread, sorry
-
Nov 13th, 2008, 02:56 PM
#14
Re: Vista - Vb app. problem
It isn't a matter of "bad threats" and "good threats", it is more like "bad threats" and "bad programs" (in the sense of being poorly written, rather than being malicious).
The problems with your program can be corrected, but as yet we still don't know what the causes of problems might be.
-
Nov 13th, 2008, 04:30 PM
#15
Thread Starter
Hyperactive Member
Re: Vista - Vb app. problem
Well...the app downloads missing ocx files to system32...that could be the problem... :S
-
Nov 14th, 2008, 02:48 AM
#16
Re: Vista - Vb app. problem
 Originally Posted by calumrulez
right click the program, properties, then compatability.
Check the checkbox saying "Run program as administrator"
Then it will automatically run as admin whenever you click on it =)
That will not solve the problem if they are not administrators as they will have to enter in the administrators logon credientials. So if they are just limited users they wont be able to run it still without "assistance".
You need to create a installation package so all dependancy files are included. You can not simply just copy/paste the exe and expect it to run.
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 
-
Nov 14th, 2008, 02:58 AM
#17
Thread Starter
Hyperactive Member
Re: Vista - Vb app. problem
I tought about that...to make an installation package..
-
Nov 14th, 2008, 03:12 AM
#18
Re: Vista - Vb app. problem
Its a requirement if you want to make sure your app will run. You may want to check out the Application Deployment Forums FAQ for more info.
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 
-
Nov 14th, 2008, 03:15 AM
#19
Thread Starter
Hyperactive Member
Re: Vista - Vb app. problem
Sure thanks for the tip....
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
|