[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
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
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 :(
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
Re: Vista - Vb app. problem
Quote:
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.
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
Re: Vista - Vb app. problem
Re: Vista - Vb app. problem
Quote:
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
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.
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... :(
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 =)
Re: Vista - Vb app. problem
great...i'll let the users who run Vista about that thing .....
i dont use vista :S
Thanks
Re: Vista - Vb app. problem
sorry man, didnt read the whole thread, sorry
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.
Re: Vista - Vb app. problem
Well...the app downloads missing ocx files to system32...that could be the problem... :S
Re: Vista - Vb app. problem
Quote:
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. ;)
Re: Vista - Vb app. problem
I tought about that...to make an installation package..
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.
Re: Vista - Vb app. problem
Sure thanks for the tip....