[wpkg-users] [OT] i hate script in cmd... ;(((
Peter Beck
peter at datentraeger.li
Sat Feb 18 15:37:21 CET 2012
Mark_Israel at nps.gov <Mark_Israel at nps.gov> quatschte am Wed, Feb 15, 2012 at 09:07:55AM -0500:
> Is there a way to get around UAC without disabling the protection? Even
> running Tasks can be a pain as UAC stops the processing.
Hi Mark,
I've never had issues with setups running as system account, but with
ActiveSetup tasks running for the current user - then UAC was poping up.
I made a package to disable UAC which seems to work...
<check type="logical" condition="and">
<check type="registry" condition="equals" path="HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA" value="0" />
<check type="registry" condition="equals" path="HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin" value="0" />
</check>
<install os='6\.[1-2]\.\d{4}' cmd='%COMSPEC% /C reg ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f' />
<install os='6\.[1-2]\.\d{4}' cmd='%COMSPEC% /C reg ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f' />
<upgrade include="install" />
<!-- default settings -->
<remove cmd='%COMSPEC% /C reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /f /v "EnableLUA" /d "1" /t REG_DWORD"' />
<remove cmd='%COMSPEC% /C reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /f /v "ConsentPromptBehaviorAdmin" /d "5" /t REG_DWORD"' />
More information about the wpkg-users
mailing list