Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   Security / Permissions (http://www.kinook.com/Forum/forumdisplay.php?f=34)
-   -   User Access Control (UAC) and automated builds (http://www.kinook.com/Forum/showthread.php?t=2258)

kinook 01-29-2007 12:55 PM

User Access Control (UAC) and automated builds
 
On Windows Vista and later with UAC (User Account Control) enabled, applications started by an admin user do not have admin rights. Visual Build itself does not require admin rights to run or perform builds, but this limitation can cause problems with common build activities such as COM registration, COM+ administration, copying files to protected folders, editing HKEY_LOCAL_MACHINE registry entries, etc. To perform these tasks, you may need to explicitly run VBP in an elevated mode (with administrative privileges). Here are some ways to do this:

1) Right-click the VBP icon and choose Run as Administrator (if not available, hold down Shift while right-clicking).

2) Right-click the VBP icon and choose Properties, switch to the Compatibility tab and check 'Run this program as administrator'.

3) Task Scheduler: Configure the task to run under an administrator account, and on the General tab of the Task properties dialog, check the 'Run with highest privileges' checkbox.

4) Run VBP from a Command Prompt that was run as administrator.

5) Disable UAC on the build box:
http://www.petri.co.il/disable_uac_in_windows_vista.htm


Note: To detect whether the build is running as an elevated admin user, the isadmin.exe utility (https://westmesatech.com/?page_id=23) can be called from a Run Program action. Use a 'Success exit codes' field value of 1 to succeed for elevated admins and fail for non-admins/unelevated admins.


All times are GMT -5. The time now is 08:54 PM.


Copyright 1999-2019 Kinook Software, Inc.