The search returned 56 results

by Eric
April 11, 2019 - 1:35 PM
Forum: WAPT usage (Console, Agent) / WAPT usage (Console, Agent)
Subject: Configuring waptexit to execute on system shutdown, not reboot
Answers: 5
Views : 6952

Re: Configuring waptexit to execute on system shutdown, not reboot

Okay

, so I need a couple of things:

I see in gpedit.msc on my machines that waptexit is running as a shutdown script.
But I can't find a way to delete, replace, or modify it.
I've modified all the registry entries (I found four) that were related to waptexit...
by Eric
April 10, 2019 - 2:20 PM
Forum: WAPT usage (Console, Agent) / WAPT usage (Console, Agent)
Subject: Configuring waptexit to execute on system shutdown, not reboot
Answers: 5
Views : 6952

Re: Configuring waptexit to execute on system shutdown, not reboot

Hello,

It's been a long time since my last message, but I haven't had time to look into it...

So, regarding detecting whether the computer is restarting or shutting down, a small PowerShell script does this very well: `


$systemLastShutdownType = get-eventlog ...`
by Eric
September 5, 2018 - 2:32 PM
Forum: WAPT usage (Console, Agent) / WAPT usage (Console, Agent)
Subject: [SOLVED] Waptagent and Windows sleep
Answers: 6
Views : 7634

Re: Waptagent and Windows standby

D,

My previous message went out too quickly... Intuitively, I would think those two lines are enough, but if you could confirm...:

Code: Select all

run('"powercfg.exe" -change -standby-timeout-ac 0')
run('"powercfg.exe" -change -hibernate-timeout-ac 0')
by Eric
September 5, 2018 - 2:29 PM
Forum: WAPT usage (Console, Agent) / WAPT usage (Console, Agent)
Subject: [SOLVED] Waptagent and Windows sleep
Answers: 6
Views : 7634

Re: Waptagent and Windows standby

Hello,

`tis-disable-sleepmode` seems to disable too many things for my needs (screen sleep mode, for example), however, it's a good starting point for creating my own package.
What are the essential elements to disable to maintain the connection to the server? I...
by Eric
September 5, 2018 - 10:43
Forum: WAPT usage (Console, Agent) / WAPT usage (Console, Agent)
Subject: [SOLVED] Waptagent and Windows sleep
Answers: 6
Views : 7634

[SOLVED] Waptagent and Windows sleep

Hello,

I'm using Wapt 1.5 Community.

I've started deploying Wapt in my computer labs (Windows 10), and I've noticed that most of the time, the workstations appear "disconnected" in the console. I assume this is due to Windows going into sleep mode.
Are you experiencing this problem?
by Eric
July 22, 2018 - 5:10 PM
Forum: WAPT Packages
Subject: Bug ensure_dir?
Answers: 1
Views : 3404

Re: Bug ensure_dir?

Hello again,

I've investigated a bit further, as I was very surprised to find a bug in a function that must be used quite a lot, and also by the display of the variable 'd' in my test 1, which is indeed the cause of the problem:

>>> ## Test 1:
>>> d=path.dirname('C:\program ...
by Eric
July 22, 2018 - 1:22 PM
Forum: WAPT Packages
Subject: Bug ensure_dir?
Answers: 1
Views : 3404

Bug ensure_dir?

Hello,

Wapt version 1.5.

I tried using the `setuphelper ensure_dir` in a package, and I encountered a problem:

the command `ensure_dir('C:\Programmes\Ape')` did nothing. I tested it in a Python console with all possible combinations (including adding "r" before it)...
by Eric
July 21, 2018 - 10:45
Forum: WAPT Packages
Subject: Is it possible to ignore version errors?
Answers: 7
Views : 9511

Re: Is it possible to ignore version errors?

Hello,

thank you for your reply.
Actually, I decided to start from scratch, and I no longer have the version conflict problem. It's quite strange; the only difference from my original script is that I didn't specify `silent_options` in the parameters (actually, `/q` and `/norestart`...).
by Eric
July 18, 2018 - 12:22
Forum: WAPT Packages
Subject: Is it possible to ignore version errors?
Answers: 7
Views : 9511

Re: Is it possible to ignore version errors?

Hello,

After multiple tests, errors, corrections... here's where I'm at.

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def get_sentinel_version(soft="Sentinel Runtime.msi"):
sentiProps = get_msi_properties(soft)
sentiVers = str(sentiProps['Version'])
#print('Type ...
by Eric
July 17, 2018 - 2:05 PM
Forum: WAPT Packages
Subject: Is it possible to ignore version errors?
Answers: 7
Views : 9511

Re: Is it possible to ignore version errors?

Hello,

I found a function in the setuphelpers that seemed to answer my question:
get_msi_properties.
So, things became simple:

def install():
print('Installing Sentinel Runtime')
soft = get_msi_properties("Sentinel Runtime.msi")
install_msi_if_needed('Sentinel ...