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.
Custom package installation
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
-
admgautier
- Messages: 45
- Registration: Sep 24, 2018 - 4:48 p.m.
- Attachments
-
- Nanocad.png (9.18 KiB) Viewed 2293 times
-
- Sketchup.png (8.31 KiB) Viewed 2293 times
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
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).
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).
-
admgautier
- Messages: 45
- Registration: Sep 24, 2018 - 4:48 p.m.
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
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
