Page 1 of 1

Installation session open

Published: July 29, 2019 - 1:43 PM
by steph.prevot
Hello,
I have a SIGAL software application whose updates can only be installed while the user is logged in.
Aside from using "def session_setup():" which would install the update every time a new user logs in, do you see a way to install it while the user is logged in, so that it only runs once?

Thank you.

Debian 9.9 server
, WAPT 1.6.2.7,
package creation workstation under Windows 10.

Re: Open session installation

Published: July 29, 2019 - 11:00 PM
by sfonteneau
I have a quick and simple idea in mind: simply test for the presence of the software in the session setup:

Code: Select all

def session_setup():
    if not installed_software('mysoftware'):
        run('install.exe')
    else:
        print('Software already install')

[SOLVED] Re: Open session installation

Published: July 31, 2019 - 10:26 AM
by steph.prevot
If I understand the command correctly, it needs to write data to the Uninstall folder of the BdRegistre. Of course, that's not happening. Inspired by your idea, during installation I'll create a flag based on the version, and then just test if the flag is present.
It's simple, but I hadn't thought of it. I can't wait for the holidays!

Thanks