Recalcitrant silent installation

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
Locked
francketaude
Messages: 24
Registered: July 1, 2016 - 9:28 PM

September 1, 2016 - 5:13 PM

Good morning,

I am contacting you because of a somewhat recalcitrant software program, namely NUCLEUS:
http://amdc.in2p3.fr/web/nubdisp_fr.html

It is indeed compatible with "seven" (tested beforehand).

As is often the case during installation, "windows" open asking for our consent...

So I tried with /verysilent but I still get the box "This will install Nucleus-win. Do you wish to continue?".

To resolve this issue, I applied /sp- /verysilent.

I tested my "template" and there are no problems except that I have a progress box that appears: the software is properly installed.
However, WAPT does NOTHING, NADA: no installation!

So I figured that this last box was causing the problem. Therefore, I applied /SUPPRESSMSGBOXES.like this:

Code: Select all

def install():
    print('installing test-nucwxp3')
    run(r'"nucWxp3.exe" /sp- /verysilent /suppressmsgboxes')
    create_shortcut(r'C:\Users\Public\Documents\Sciences physiques\Physique\Nucleus.lnk',target=r'C:\Program Files (x86)\Nucleus-Win\Nucleus-Win3.exe')
Template retest: flawless, no more boxes
Test again with WAPT: NOTHING!

Do you have a solution to this small problem?

Thank you,
franck
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 1, 2016 - 10:36 PM

I just tested it with Windows 10 x86 and x64.

It works for me except for `create_shortcut`.
francketaude
Messages: 24
Registered: July 1, 2016 - 9:28 PM

September 2, 2016 - 5:24 PM

Good morning,

Thank you for the test.

So I tested it again today and it works... I didn't really understand why WAPT stubbornly refused yesterday.

So, quite pleased with myself, I took the opportunity to add a clean uninstallation (software and shortcut) as well as the removal of the shortcuts that the software created on the "desktops" of the different sessions during installation:

Code: Select all

uninstallstring = ['"C:\Program Files (x86)\Nucleus-Win\unins000.exe" /SILENT']

def uninstall():
    remove_file(r'C:\Users\Public\Documents\Sciences physiques\Physique\Nucleus.lnk')
	
def install():
    print('installing test-nucwxp3')
    run(r'"nucWxp3.exe" /sp- /verysilent /suppressmsgboxes')
    create_shortcut(r'C:\Users\Public\Documents\Sciences physiques\Physique\Nucleus.lnk',target=r'C:\Program Files (x86)\Nucleus-Win\Nucleus-Win3.exe')
    remove_file(r'C:\Users\Eleve\Desktop\Nucleus-Win.lnk') 
    remove_file(r'C:\Users\Administrateur\Desktop\Nucleus-Win.lnk') 
    remove_file(r'C:\Users\Profs\Desktop\Nucleus-Win.lnk')     	
It is on this last point that I would like to know if there is not a simpler and more elegant method to avoid these shortcuts which are installed by default.

THANKS,
Franck
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 3, 2016 - 00:08

remove_desktop_shortcut('Nucleus-Win')

https://dev.tranquil.it/sphinxdocs/sour ... p_shortcut

Allows you to remove shortcuts from all users
francketaude
Messages: 24
Registered: July 1, 2016 - 9:28 PM

September 3, 2016 - 9:05 AM

Hello,

thank you sir!

Franck
Locked