Page 1 of 1

Recalcitrant silent installation

Published: September 1, 2016 - 5:13 PM
by francketaude
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

Re: Stubborn silent installation

Published: September 1, 2016 - 10:36 PM
by sfonteneau
I just tested it with Windows 10 x86 and x64.

It works for me except for `create_shortcut`.

Re: Stubborn silent installation

Published: September 2, 2016 - 5:24 PM
by francketaude
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

Re: Stubborn silent installation

Published: September 3, 2016 - 12:08 AM
by sfonteneau
remove_desktop_shortcut('Nucleus-Win')

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

Allows you to remove shortcuts from all users

Re: Stubborn silent installation

Published: September 3, 2016 - 9:05 AM
by francketaude
Hello,

thank you sir!

Franck