|
|
|
@ -17,10 +17,9 @@ if isfile(makepath(programfiles32,'wapt','private','symetric.txt')) and isfile(m |
|
|
|
|
f = Fernet(open(makepath(programfiles32,'wapt','private','symetric.txt'),'r').read()) |
|
|
|
|
variables.update(json.loads(f.decrypt(open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read()))) |
|
|
|
|
|
|
|
|
|
connector_version = control.version.split('-',1)[0] |
|
|
|
|
integrator_version = connector_version |
|
|
|
|
|
|
|
|
|
def install(): |
|
|
|
|
connector_version = control['version'].split('-',1)[0] |
|
|
|
|
integrator_version = connector_version |
|
|
|
|
for extension in ['connector','integrator']: |
|
|
|
|
if isdir(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension)): |
|
|
|
|
remove_tree(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension)) |
|
|
|
@ -51,6 +50,8 @@ def uninstall(): |
|
|
|
|
remove_tree(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension)) |
|
|
|
|
|
|
|
|
|
def audit(): |
|
|
|
|
connector_version = control['version'].split('-',1)[0] |
|
|
|
|
integrator_version = connector_version |
|
|
|
|
try: |
|
|
|
|
run('type "%s" | find /I "em:version=" | find "%s"' % (makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-connector@inverse.ca','install.rdf'), connector_version)) |
|
|
|
|
except: |
|
|
|
|