Initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
package : kg-disable-access-camera
|
||||||
|
version : 0-3
|
||||||
|
architecture : all
|
||||||
|
section : base
|
||||||
|
priority : optional
|
||||||
|
name :
|
||||||
|
maintainer : Administrator
|
||||||
|
description : Package for kg-disable-camera
|
||||||
|
depends :
|
||||||
|
conflicts :
|
||||||
|
maturity :
|
||||||
|
locale :
|
||||||
|
target_os :
|
||||||
|
min_os_version :
|
||||||
|
max_os_version :
|
||||||
|
min_wapt_version :
|
||||||
|
sources :
|
||||||
|
installed_size :
|
||||||
|
impacted_process :
|
||||||
|
description_fr :
|
||||||
|
description_pl :
|
||||||
|
description_de :
|
||||||
|
description_es :
|
||||||
|
audit_schedule :
|
||||||
|
editor :
|
||||||
|
keywords :
|
||||||
|
licence :
|
||||||
|
homepage :
|
||||||
|
package_uuid : 3404e8c7-0c8e-4e10-a374-13d153188584
|
||||||
|
valid_from :
|
||||||
|
valid_until :
|
||||||
|
forced_install_on :
|
||||||
|
signer : wapt-private
|
||||||
|
signer_fingerprint: f92cc2c37728a7041fdc444a610944e93e722bc118d6e3c1d27de71fea99afdf
|
||||||
|
signature : iMkGATaftthNItP1CbGe98eb8RCa3t+HjjKO19cuRTkTLpyd8vh8VXlwJqOfsdh7Yli1VXhzHH/Pq+bkK4ks4VFn/PONqOB/swtJN3tXPL8QUohrH4wcWnlbg2ZMTLwNUtc5U43N5GkqsCsaCLZqfwQB7t+AB8H9JLpoVkfvgL7eGV+ZSYugF8xN1lhSj4O1wv2LwnGoaS9w+r4qPC21r0wuTZEiVzFqc13MmHgmQ6Nok/vc8Co22GrFUPclONkAMt8tHGpFjla4HUPVqJrdWCsjxyotel80HnQH1xR8+G7PiRTtVWswkTgWp8mVUMN6Ti+zgRyk0WYslQqTMMO+sQ==
|
||||||
|
signature_date : 2019-06-01T14:13:20.314000
|
||||||
|
signed_attributes : package,version,architecture,section,priority,name,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,signer,signer_fingerprint,signature_date,signed_attributes
|
||||||
@@ -0,0 +1,295 @@
|
|||||||
|
[PyScripter]
|
||||||
|
Version=3.3.2.0
|
||||||
|
|
||||||
|
[Project]
|
||||||
|
ClassName=TProjectRootNode
|
||||||
|
StoreRelativePaths=TRUE
|
||||||
|
ShowFileExtensions=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectFilesNode
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectFolderNode
|
||||||
|
Name=wapt
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\common.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\setuphelpers.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node2]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\wapt-get.ini
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node3]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node4]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\waptpackage.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes]
|
||||||
|
Count=5
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=$[Project-Path]changelog.txt
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node2]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=$[Project-Path]control
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node3]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=$[Project-Path]..\setup.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes]
|
||||||
|
Count=4
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectRunConfiguationsNode
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=install
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=install "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=remove
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=remove "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node2]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=session-setup
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=session-setup "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node3]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=update
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=update
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node4]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=upgrade
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=-f upgrade
|
||||||
|
WorkingDir=$[ActiveScript-Dir]
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node5]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=-i build-upload
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=-i build-upload "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node6]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=svn update
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=sources "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node7]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=uninstall
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=uninstall "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[Project-Path]..
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node8]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=update-package-sources
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=update-package-sources "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node9]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=audit
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=audit -f "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes]
|
||||||
|
Count=10
|
||||||
|
|
||||||
|
[Project\ChildNodes]
|
||||||
|
Count=2
|
||||||
|
|
||||||
|
[Project\ExtraPythonPath]
|
||||||
|
Count=0
|
||||||
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from setuphelpers import *
|
||||||
|
|
||||||
|
uninstallkey = []
|
||||||
|
|
||||||
|
def install():
|
||||||
|
print('installing %s' % control.asrequirement())
|
||||||
|
registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam','Value','Deny')
|
||||||
|
|
||||||
|
def uninstall():
|
||||||
|
print('uninstalling %s' % control.asrequirement())
|
||||||
|
registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam','Value','Allow')
|
||||||
|
|
||||||
|
def session_setup():
|
||||||
|
print('Session setup for %s' % control.asrequirement())
|
||||||
|
# put here what to do when package is configured inside a user session
|
||||||
|
# implicit context variables are WAPT, control, user, params
|
||||||
|
|
||||||
|
def update_package():
|
||||||
|
print('Update package content from upstream binary sources')
|
||||||
|
# put here what to do to update package content with newer installers.
|
||||||
|
# launched with command wapt-get update-package-sources <path-to-wapt-directory>
|
||||||
|
# implicit context variables are WAPT, basedir, control, user, params, run
|
||||||
|
# if attributes in control are changed, they should be explicitly saved to package file with control.save_control_to_wapt()
|
||||||
|
|
||||||
|
def audit():
|
||||||
|
print('Auditing %s' % control.asrequirement())
|
||||||
|
if registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam','Value').lower() == 'deny':
|
||||||
|
return 'OK'
|
||||||
|
else:
|
||||||
|
return 'Error'
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
update_package()
|
||||||
|
|
||||||
Reference in New Issue
Block a user