Problem executing .VBS script
Published: February 28, 2022 - 2:56 PM
Good morning,
I'm about to go bald because I can't understand why my script doesn't work in production, even though it works perfectly when I test it directly through PyScripter. Can you shed some light on this?
Here is the Setup.py file.
Thank you very much for your help.
Precision:
- Wapt version 1.8.2 Community edition
- Dedian Linux Server
- OS administration machine: Windows 11
I'm about to go bald because I can't understand why my script doesn't work in production, even though it works perfectly when I test it directly through PyScripter. Can you shed some light on this?
Here is the Setup.py file.
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
print ('Installation de l imprimante')
with disable_file_system_redirection():
run('WScript.exe "Install_imp.vbs"')
print ('Installation terminee')
def uninstall():
print ('Suppression de l imprimante')
with disable_file_system_redirection():
run('WScript.exe "remove_imp.vbs"')
print ('Suppression terminee')
Precision:
- Wapt version 1.8.2 Community edition
- Dedian Linux Server
- OS administration machine: Windows 11