Board Logo
« How to prevent UAC problems on Vista and above »

Welcome Guest. Please Login or Register.
Nov 20th, 2017, 10:17pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 sticky  Author  Topic: How to prevent UAC problems on Vista and above  (Read 894 times)
Stefan Pendl
Administrator
ImageImageImageImageImage


member is offline

Avatar

Let's talk JB ...


Homepage PM

Gender: Male
Posts: 3711
xx How to prevent UAC problems on Vista and above
« Thread started on: Jan 24th, 2013, 05:01am »

JB was created when Vista was not even on the horizon, so we are now facing many problems that have their roots in User Account Control also known as UAC.

Turning UAC off doesn't solve the problems and is not recommended.

It is fairly easy to make JB Vista-compatible.

You just need to create some manifest files in the JB installation folder.

The manifest files are simple text files, actually XML files, so a text editor is all you need.

You need to create the following two files:
  • jbasic.exe.manifest
  • jbrun101.exe.manifest


The contents must be Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
   <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
      <ms_asmv2:security>
         <ms_asmv2:requestedPrivileges>
            <ms_asmv2:requestedExecutionLevel level="asInvoker">
            </ms_asmv2:requestedExecutionLevel>
         </ms_asmv2:requestedPrivileges>
      </ms_asmv2:security>
   </ms_asmv2:trustInfo>
</assembly>
 


If you deploy an application include a copy of the jbrun101.exe.manifest in your distribution.
If you renamed jbrun101.exe to MyApp.exe, you need to rename the manifest to MyApp.exe.manifest too.
Make sure that the manifest is in the same folder as the executable.

The main benefit is that the presence of this manifest will turn off virtualization as described at Create and Embed an Application Manifest (UAC)

Further information about UAC see The Windows Vista and Windows Server 2008 Developer Story and User Account Control
User IP Logged

Stefan - Homepage

Remember to read the forum rules board wink

Just BASIC 1.01, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls