LB Booster
IDE and Compiler >> Compiler >> Manifests
http://lbb.conforums.com/index.cgi?board=compiler&action=display&num=1408792929

Manifests
Post by Richard Russell on Aug 23rd, 2014, 11:22am

There's an ongoing thread at the LB forum about application manifests, which don't seem to be very well understood. Every compiled LBB executable contains a manifest which provides the following features that LB 4.04 (ordinarily) doesn't:
As noted above, in Windows Vista and later programs don't normally run with admin privileges, so you cannot write to C:\Program Files\ or certain registry locations (when compiled with LB 4.04 such writes will appear to succeed, but won't actually do anything; when compiled with LBB the writes will fail).

If you really do need to write to such locations (for example your application is an installer, or includes an automatic 'update' feature) it will need admin rights. One way of acquiring those is to run the program 'elevated', either by right-clicking and selecting 'Run as administrator' or by using the runas shell command (in both cases a UAC prompt will appear).

But you may feel that this is not user-friendly. What if you want your application to prompt for elevation automatically without being 'run as administrator'. In principle you can achieve that by modifying the manifest - but LBB at present doesn't support that (you may be able to achieve a similar effect by supplying a side-by-side manifest with your application, but that's a bit messy).

I could, in principle, modify LBB to provide the option of compiling an executable which automatically prompts for elevation; that would be convenient if the program was an installer. Would you like me to add that feature to LBB?.

The next update to LBB is due for release soon, so it would be helpful to receive your feedback as soon as possible.

Richard.
Re: Manifests
Post by pierscintilla on Aug 26th, 2014, 11:37am

"I could, in principle, to modify LBB Shops provide the option of compiling an executable Which automatically prompts for elevation"

Characteristic very interesting and useful!!

Pier