Home  |  About  | Last |  Submit  |  Contact
AllQuests.com

Previous Question:  Less posts on SPF  SitePoint Support and FeedbackNext Question:  CD Changer Disc Detection  Visual C++ Programming
Question Problem with Windows VISTA ( CodeGuru Forums Visual C++ Programming )
Updated: 2008-08-12 07:15:07 (14)
Problem with Windows VISTA

I created a MSI Installer using .NET framework for an MFC SDI Applciation. Its working fine but when I run the installation in Windows VISTA, the installation is successful but when I run the application and it ask for administrative privilages.

Can someone help me in finding a solution that what changes do I have to make in Setup project so that any VISTA user can access the application?

Thanks in Advance


Answers: Problem with Windows VISTA ( CodeGuru Forums Visual C++ Programming )
Problem with Windows VISTA

Just to be sure, could you post a snapshot of the error message and also how the application shows up in explorer?

kirants

Problem with Windows VISTA

Sorry it was the wrong manifest. The name of the application is ControlFLASH.exe. I looked into the setup project as well as the SDI application but didn't see any manifest file.

The reason it does'nt have a Manifest file is because it was developed in VC++ 6.0 and later on ported to VC++ 2003

maverick786us

Problem with Windows VISTA

If the UAC prompt is happening when you run the application, you should look for the manifest file for the application. For this, you need to have the project used to compile the application exe. The manifest file should be named app.exe.manifest or something of that sort. This gets embedded into the application often.

kirants

Problem with Windows VISTA

Hm.. is that it ? That seems ok.
On Vista, if you open explorer and navigate to the folder containing the exe, does the icon for the exe show a small shield within the icon ?
Also, what is the name of the exe ?

kirants

Problem with Windows VISTA

You must've added a manifest to the application which requires adminstrator level privileges. Does your application exe have a manifest ? If so, open it in notepad and see what the requestedExecutionLevel is set to.

kirants

Problem with Windows VISTA

Where can I find the Manifest file?? In application folder or in the MSI Installer project itself?

maverick786us

Problem with Windows VISTA

Here it is. Name of the application is "ControlFLASH.exe". Where is the shield for the ICONS??

maverick786us

Problem with Windows VISTA

You might take a look at this thread - there are lots of reasons that UAC may ask for elevation.

Hope that helps.

krmed

Problem with Windows VISTA

Sorry about my previous post. By Administrative privilages I mean, it asked for Administrative User Name and Password to run the application

maverick786us

Problem with Windows VISTA

Asking for the Administrative Username and Password is a function of the UAC in Vista. Somthing a simple as having the word "Setup" in your version resource can cause this.

See the thread I referred you to for more info.

krmed

Problem with Windows VISTA

yes it only happens when I enabled UAC in Advanced System Settings

maverick786us

Problem with Windows VISTA

So did any of the reasons I mentioned in the other thread help you determine WHY your application is asking for elevation?

You can add this to your manifest file, and providing your program isn't trying to do something that REALLY REQUIRES elevation, it won't ask:
Code:
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo>

Hope that helps.

krmed

Problem with Windows VISTA

It's a good idea to add the manifest since it is the right way and you are assured of proper behavior.

kirants

Problem with Windows VISTA

Thanks. So if my project does'nt have a manifest file, how can I add it??

maverick786us

Previous Question:  Less posts on SPF  SitePoint Forums  SitePoint Support and FeedbackNext Question:  CD Changer Disc Detection  CodeGuru Forums  Visual C++ Programming

- Source: Problem with Windows VISTA CodeGuru Forums Visual C++ Programming
- Previous Question: Less posts on SPF SitePoint Forums SitePoint Support and Feedback
- Next Question: CD Changer Disc Detection CodeGuru Forums Visual C++ Programming





AllQuests.com


Best dedicated servers   Top dedicated servers   Cheap dedicated servers   Linux dedicated servers   Windows dedicated servers   Unmetered dedicated servers