Something is going wrong

Re: Something is going wrong

Postby wquatan » 08.09.2014, 00:34

@aker

It's indeed AV-related ! Not clear to me why I didn't notice this during the first test I did earlier. When I disable AV before WSUSoffline is executing, it terminates within the same lapse of time as the pre-9.4 versions.

It's all related to the FOR-loop introduced in 9.4 and which seems to be needed due to the way MS is providing the information.

I'll have to remember to disable my AV every time I run WSUSoffline, because adding %TEMP% as an exception in my AV is a bridge to far. Just a pitty WSUSoffline isn't using an own subdir in %TEMP%. I certainly wouldn't mind to add that subdir as an exception in my AV.

Thanks !!

@WSUSUpdateAdmin

Could you please consider to use something like %TEMP%\WSUSOU instead of %TEMP%. That would be of a great help for those running into this problem.
wquatan
 
Posts: 40
Joined: 11.02.2013, 00:03

Re: Something is going wrong

Postby aker » 08.09.2014, 05:29

You can use a different path as temporary folder by creating a custom InitializationHook, which contains the line
Code: Select all
set TEMP=xxx
.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: Something is going wrong

Postby WSUSUpdateAdmin » 08.09.2014, 08:33

Hi.

wquatan wrote:I'll have to remember to disable my AV every time I run WSUSoffline [...]


Please exclude text files from "on-access" scanning and/or disable "on-write" scanning.

Regards
T. Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Something is going wrong

Postby wquatan » 08.09.2014, 10:16

aker wrote:You can use a different path as temporary folder by creating a custom InitializationHook, which contains the line
Code: Select all
set TEMP=xxx
.


Where do I create that so that it survives updates ?
wquatan
 
Posts: 40
Joined: 11.02.2013, 00:03

Re: Something is going wrong

Postby aker » 08.09.2014, 10:33

Save the command as .\cmd\custom\InitializationHook.cmd
It will survive updates.

The code I'm using:
Code: Select all
cd "%~dp0..\.."
set WSUSOU_DIR=%cd%
cd "%~dp0"
set TEMP=%WSUSOU_DIR%\tmp
set DOWNLOAD_LOGFILE=%WSUSOU_DIR%\log\download.log
set WSUSOU_DIR=

When using this, make sure, that a folder named "tmp" exists.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: Something is going wrong

Postby Denniss » 08.09.2014, 12:01

In my opinion it's problematic to redirect system variables to a temp folder in the WOU folder, WOU should per default (or per option in update generator) use its own temp folder.
Denniss
 
Posts: 869
Joined: 01.08.2009, 10:51

Re: Something is going wrong

Postby WSUSUpdateAdmin » 08.09.2014, 18:56

Hi.

Denniss wrote:In my opinion it's problematic to redirect system variables to a temp folder in the WOU folder, WOU should per default (or per option in update generator) use its own temp folder.

I would agree with this, if *Hook.cmd calls were not nested within setlocal...endlocal blocks, which they are.

Anyway, just using "%TEMP%\wou" or "%~dp0..\temp" instead of "%TEMP%" won't help without reconfiguring a paranoid AV scanner, so please consider:
WSUSUpdateAdmin wrote:Please exclude text files from "on-access" scanning and/or disable "on-write" scanning.

Regards
T. Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Previous

Return to Download

Who is online

Users browsing this forum: Bing [Bot] and 386 guests