I would like to use Wapt to deploy a modification to a key in the Windows registry related to Outlook settings on certain PCs
My basic .reg file looks like this:
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover]
"ExcludeExplicitO365Endpoint"=dword:00000001The first one is to install the key (AntiPopup.bat):
Code: Select all
@echo off
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /f /v ExcludeExplicitO365Endpoint /t REG_DWORD /d "00000001"Code: Select all
@echo off
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /fHowever, once the WAPT package is created with the following setup.py:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('AntiPopup.bat: Execute...')
run(r'AntiPopup.bat')
def uninstall():
print('RemoveAntiPopup.bat: Execute...')
run(r'RemoveAntiPopup.bat')Thinking there might be a problem with the application of a batch file, I converted the batch files into exe files with admin rights.
I tested the executable files directly in the VM; they create and delete the key correctly
I created the setup.py file as follows:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('AntiPopup.exe: Execute...')
run(r'AntiPopup.exe')
def uninstall():
print('RemoveAntiPopup.exe: Execute...')
run(r'RemoveAntiPopup.exe')Can you help me please? I have quite a few small packages like this to create.
Thank you in advance
### Required Information###
Server running Debian 9
Windows 10 Pro Admin Machine (1909)
WAPT Server version: 1.8.1
WAPT Agent version: 1.8.1.6740
WAPT Setup version: 1.8.1.6740
WAPT Deploy version: 1.8.1.6740
Database status: OK (1.7.6.6)
