Page 1 of 1

Custom package installation

Published: May 10, 2022 - 10:31
by admgautier
Hello,

I'm a complete beginner in scripting and WAPT, so I apologize in advance if my questions seem silly.

After several searches, I still can't generate a custom package that requests additional information.

Example: Sketchup installation
PyScripter code:
# -*- coding: utf-8 -*-
from setuphelpers import *

"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls.


`def install():
# Declaring local variables

# Installing the software
print("Installing: %s" % control.package)
install_exe_if_needed('SketchUpPro-2019-fr.exe',
silentflags='/VERYSILENT',
key='',
#min_version=control.get_software_version(),
)`

When I run "Run Install" from the PyScripter console, the executable launches correctly. However, this page appears and prevents my installation from proceeding silently without my intervention (see attached image).

What I would like is for my script to perform the software installation without requesting any validation (license acceptance, acceptance of additional parameters, etc.).

If I take another piece of software, for example, that I want to deploy, such as NanoCAD, when I run "Run Install" via the PyScripter console, I again encounter a warning message, preventing the installation. (See attached file).

I'm generating the native PyScripter code:
def install():
# Declaring local variables
#run('setup.exe /quiet /i "NCE502000.exe"')
# Installing the software
print("Installing: %s" % control.package)
install_exe_if_needed('NCE502000.exe',
silentflags="/s",
#key='',
min_version=control.get_software_version(),
# min_version="1.2.2.1093",
)

Do I need to add specific options depending on the software? What syntax should I use?
Thank you in advance for your feedback.

Re: Custom package installation

Published: May 10, 2022 - 1:02 PM
by sfonteneau
Each software program installs silently differently.

For SketchUp, if I look at our package: https://wapt.tranquil.it/store/details- ... 0a43a.wapt

, we unzip the .exe file and retrieve the MSI file inside.

See if it's the same for SketchUp Pro.



For the second program you're trying, the window indicates the silent option to use: /quiet (and not /s).

Re: Custom package installation

Published: May 10, 2022 - 4:25 PM
by admgautier
Thank you for your feedback.

And thank you very much for your very helpful comment; I managed to install SketchUp Pro with the MSI file.

However, I'm still having trouble configuring NanoCAD. I did specify /quiet mode instead of /VERYSILENT, but it seems there are other parameters I need to specify to deploy the software.

Do you have any tips or a website that explains how to reference these parameters in the code?


Thank you in advance for your help.
Anthony