Click here to Skip to main content
15,902,892 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
When i make standalone exe in vb6 on windows 7 32bit machine. It always compile with shield sign on it i.e. UAC.

I want to compile without shield sign just open normally.

I am opening vb6 application without admin only and compiling in that.

Please help.
Posted
Comments
luisnike19 25-Aug-11 14:34pm    
Your question it's not clear.
Smithers-Jones 25-Aug-11 14:39pm    
One of the senior Codeproject-members, telling you why-the-hell-are-you-still-be-using-VB6-it's-dead-for-years, will be here any second now.
Member 1760764 25-Aug-11 16:12pm    
I am sorry that's not my choice.
Right now. When i compile exe , the exe when generated have shield UAC icon and it prompts me before running.
I want to disable that shield , i don't find any option while creating exe.
I don't want to add manifest because i don't want to run as admin.

I want to run application as normal user without admin priviledges.

Some how it gets that shield icon and it always pops and then run as admin.
Philippe Mori 25-Aug-11 19:22pm    
It is normal that you don't find any options... UAC was added first in Vista (although already old) which is far more recent than VB6.

As someone mentionned, you can add a manifest... But using a compiler much older than the targetted system will effectively give you some limitations in the created application.

You need to add a manifest to make it compatible. Check out this link:
http://msdn.microsoft.com/en-us/library/bb756929.aspx[^]

Although vb6 is one of those languages that shouldn't be used for active development and you should consider replacing it. There is no future for it anymore and will trouble awaits you. So, best thing to do is to add the manifest and then get working on a new version, in vb.net for example.

Good luck!
 
Share this answer
 
Comments
Smithers-Jones 25-Aug-11 15:27pm    
Ah, there we go... see my comment above. :-)
E.F. Nijboer 26-Aug-11 9:39am    
Yep, and I read it before posting this answer :-)
You have to create the program well, and handle some errors before compiling..
After you created your program,you need to open the file menu in the titlebar,check 'Make project1.exe'and select it, a window will appear,here you select the location you want your program to be saved....on the top of the window by selecting the file in the combo box....in the textbox below write the name of the file created...then click the option button to fill the provided fields and click the ok button after setting those things.
And lastly click on the save button...now your program has been compiled....
Every time you want to open the program...you can open it without launching vb.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900