UAC + vb5-program in W7/64


H

Helge Haensel

Hallo NG!

I have a self-written pretty simple program under vb5 that always causes
UAC to pop up when started. I have several other (vb5-)programs that do
not activate UAC. Deactivating UAC lets start the questioned program
without any hassle. Is it possible to deactivate UAC exclusively for a
program? I do not mean 'Start as Admin' because the program needs to start
from startup folder with system start.

Vy 73! Helge
 
Ad

Advertisements

E

Ed Cryer

Hallo NG!

I have a self-written pretty simple program under vb5 that always causes
UAC to pop up when started. I have several other (vb5-)programs that do
not activate UAC. Deactivating UAC lets start the questioned program
without any hassle. Is it possible to deactivate UAC exclusively for a
program? I do not mean 'Start as Admin' because the program needs to
start from startup folder with system start.

Vy 73! Helge
It's all a question of Permissions.
Right click the program, select Properties, then the Security tab.
It might be helpful to you if you look at one program that doesn't
activate UAC, and then your own one. See the difference.

Ed
 
S

Seth

Helge Haensel said:
Hallo NG!

I have a self-written pretty simple program under vb5 that always causes
UAC to pop up when started. I have several other (vb5-)programs that do
not activate UAC. Deactivating UAC lets start the questioned program
without any hassle. Is it possible to deactivate UAC exclusively for a
program? I do not mean 'Start as Admin' because the program needs to start
from startup folder with system start.
if it is self-written you should be able to fix the behavior that is causing
UAC to pop up. Is it trying to write\modify a file in the \Windows or
\Program Files hierarchy? Modify data in the registry at HKLM?

Fix the issue, not bypass the security is the correct way to go.
 
H

Helge Haensel

if it is self-written you should be able to fix the behavior that is
causing UAC to pop up. Is it trying to write\modify a file in the
\Windows or \Program Files hierarchy? Modify data in the registry at
HKLM?

Fix the issue, not bypass the security is the correct way to go.
You are absolutely right, but I tried everything under permissions
and security and didn't succeed yet. I gave full access to files and
are logged in as admin. No luck.
Helge
 
H

Helge Haensel

It's all a question of Permissions.
That is easily said. But actually you are poking in a black hole
Right click the program, select Properties, then the Security tab.
It might be helpful to you if you look at one program that doesn't
activate UAC, and then your own one. See the difference.
I did that also and didn't find differences.
Helge
 
B

Big Steel

Hallo NG!

I have a self-written pretty simple program under vb5 that always causes
UAC to pop up when started. I have several other (vb5-)programs that do
not activate UAC. Deactivating UAC lets start the questioned program
without any hassle. Is it possible to deactivate UAC exclusively for a
program? I do not mean 'Start as Admin' because the program needs to
start from startup folder with system start.
You should convert the program over to VB.NET You can write the program
to use Standard user rights and not Admin rights. .Net solutions have a
UAC Manifest that can be created in the App.Config so you can tell the
O/S the needed rights the program needs. You can look it up by using
Being or Google.
 
Ad

Advertisements

B

Big Steel

You are absolutely right, but I tried everything under permissions
and security and didn't succeed yet. I gave full access to files and
are logged in as admin. No luck.
Helge
And you are not going to succeeded because Program Files and Ssystem32
are protected areas on the Windows 7 O/S. If you have data files, then
they should be put into the ProgramData folder, a hidden folder that you
will have to unhide to see the folder.
 
D

Dave \Crash\ Dummy

Helge said:
Hallo NG!

I have a self-written pretty simple program under vb5 that always causes
UAC to pop up when started. I have several other (vb5-)programs that do
not activate UAC. Deactivating UAC lets start the questioned program
without any hassle. Is it possible to deactivate UAC exclusively for a
program? I do not mean 'Start as Admin' because the program needs to
start from startup folder with system start.
Run the program as a scheduled task using Task Manager. Set it to run
once at startup.
 
H

Helge Haensel

Am 07.07.2011, 15:05 Uhr, schrieb Dave "Crash" Dummy
Run the program as a scheduled task using Task Manager. Set it to run
once at startup.
Sorry, doesn't work!
H.
 
H

Helge Haensel

You should convert the program over to VB.NET You can write the program
to use Standard user rights and not Admin rights. .Net solutions have a
UAC Manifest that can be created in the App.Config so you can tell the
O/S the needed rights the program needs. You can look it up by using
Being or Google.
Well, but I do not have VB.Net. Sorry!
H.
 
H

Helge Haensel

And you are not going to succeeded because Program Files and Ssystem32
are protected areas on the Windows 7 O/S. If you have data files, then
they should be put into the ProgramData folder, a hidden folder that you
will have to unhide to see the folder.
My files are not in Program Files or System32. They are in
"C:\Users\helge\VB 50\Uxe\...exe"
H.
 
Ad

Advertisements

S

Seth

Helge Haensel said:
You are absolutely right, but I tried everything under permissions
and security and didn't succeed yet. I gave full access to files and
are logged in as admin. No luck.
Well then maybe provide more details on this mysterious program and someone
here might spot the issue. But so far with no details all we can do is
guess. You gave full access to what files? Where? Where is the program run
from? Where does it try to save\update data and\or settings? File paths or
reg paths for that? Etc...

No details will result in no useful responses.
 
D

Dave \Crash\ Dummy

Helge said:
Am 07.07.2011, 15:05 Uhr, schrieb Dave "Crash" Dummy


Sorry, doesn't work!
"Doesn't work" how? Do you still get the UAC popup, or does the program
fail to run altogether? Is it a self contained executable, or does it
require an installed engine? What is the filename.ext?
 
H

Helge Haensel

Am 07.07.2011, 16:45 Uhr, schrieb Dave "Crash" Dummy
"Doesn't work" how? Do you still get the UAC popup, or does the program
fail to run altogether?
It fails to run altogether.
Is it a self contained executable, or does it
require an installed engine? What is the filename.ext?
It requires C:\Windows\SysWOW64\msvbvm50.dll
 
H

Helge Haensel

Well then maybe provide more details on this mysterious program and
someone here might spot the issue. But so far with no details all we can
do is guess. You gave full access to what files?
To the executable "C:\Users\helge\VB 50\Uxe\gbtgbt.exe",
to datafile gbtgbt.gbt in same directory
Where? Where is the program run from?
Executed in "C:\Users\helge\VB 50\Uxe\"
Where does it try to save\update data and\or settings?
Yes, update data in *.gbtgbt. No other settings.
File paths or reg paths for that? Etc...
All in same folder as given. No reg access at all.
No details will result in no useful responses.
Anyway, thank you for all your suggestions!
 
H

Helge Haensel

Am 07.07.2011, 16:45 Uhr, schrieb Dave "Crash" Dummy
"Doesn't work" how? Do you still get the UAC popup, or does the program
fail to run altogether? Is it a self contained executable, or does it
require an installed engine? What is the filename.ext?
Well I could start it in task manager. But for a start with system start
I have to use 'planned tasks' ('Aufgabenplannung' in german).
There I clicked 'start with system start'. But it didn't.
 
Ad

Advertisements

S

Seth

Helge Haensel said:
To the executable "C:\Users\helge\VB 50\Uxe\gbtgbt.exe",
to datafile gbtgbt.gbt in same directory

Executed in "C:\Users\helge\VB 50\Uxe\"

Yes, update data in *.gbtgbt. No other settings.

All in same folder as given. No reg access at all.

Anyway, thank you for all your suggestions!
Well in that case I'm stumped as all that you listed above should not kick
off UAC. While I haven't run your program, I have run others in the same
manner with no UAC issues.

Just to be sure, is it really UAC? Or is it the dialog that we get when
trying to run program downloaded from the Internet? In that case the key
thing you are trying to do is "un-block" the executable.
 
B

Big Steel

My files are not in Program Files or System32. They are in
"C:\Users\helge\VB 50\Uxe\...exe"
Your issue is that you are trying to run VB5 COM based solution on
Windows 7. For whatever reasons, the program you have developed with the
COM based development tool needs admin rights to run. On Windows 7, the
software developer should be developing programs that only need Standard
user rights so that the user is not prompted to escalate rights.
 
Ad

Advertisements

D

Dave \Crash\ Dummy

Helge said:
Well I could start it in task manager. But for a start with system
start I have to use 'planned tasks' ('Aufgabenplannung' in german).
There I clicked 'start with system start'. But it didn't.
Sorry. Task Scheduler is what I meant. The details are a little
complicated to explain in a NG posting, and I am no expert, anyway, but
I am able use Task Scheduler to run a program that has the same problem
that you face. If I try to run it from Explorer I get the UAC popup. If
I try to run it from Startup, it fails. I suggest you try constructing a
Basic Task using the Task Scheduler wizard. It's either that or disable UAC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top