I added a "session-setup" parameter to a package:
Code: Select all
def session_setup():
filecopyto('v6-gpo-configuration.json',makepath(user_local_appdata(),'UpSignOn'))Do you have any idea what my mistake might be?
THANKS
Code: Select all
def session_setup():
filecopyto('v6-gpo-configuration.json',makepath(user_local_appdata(),'UpSignOn'))Hello, as indicated in the documentation:
https://www.wapt.fr/fr/doc/CreationPaqu ... sion-setup
, with session_setup, it is not possible to access files contained within the package.
You will need to copy them beforehand to a directory.
Code: Select all
def session_setup():
if not isdir(makepath(user_local_appdata,'UpSignOn')):
mkdirs(makepath(user_local_appdata,'UpSignOn'))
filecopyto('C:/Windows/System32/v6-gpo-configuration.json',makepath(user_local_appdata(),'UpSignOn'))
def install():
# Declaring local variables
# Installing the software
print("Installing: UpSignOn-7.7.1-silent-installer.msi")
install_msi_if_needed('UpSignOn-7.7.1-silent-installer.msi' , key = '' , min_version = "7.7.1" )
filecopyto('v6-gpo-configuration.json',makepath(system32))