Download from microsoft website which folder put them in

Re: Download from microsoft website which folder put them in

Postby aker » 11.06.2015, 05:00

Right click, the "Edit"; should be the second option.
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: Download from microsoft website which folder put them in

Postby lookoutnoob » 11.06.2015, 07:35

Wow... Haha how could I ever miss this? .. :? :lol:
lookoutnoob
 
Posts: 65
Joined: 04.06.2015, 20:42

Re: Download from microsoft website which folder put them in

Postby lookoutnoob » 11.06.2015, 08:06

So if I want to have these settings: http://imgur.com/O3K0avl
I have to do:

%SystemRoot%\System32\cscript.exe //Nologo //E:vbs .\cmd\XSLT.vbs "%TEMP%\package.xml" .\xslt\ExtractDownloadLinks-<w60>-<x86>-<glb>.xsl "%TEMP%\DownloadLinks-all.txt"
goto EoF

%SystemRoot%\System32\cscript.exe //Nologo //E:vbs .\cmd\XSLT.vbs "%TEMP%\package.xml" .\xslt\ExtractDownloadLinks-<w60>-<x64>-<glb>.xsl "%TEMP%\DownloadLinks-all.txt"
goto EoF

%SystemRoot%\System32\cscript.exe //Nologo //E:vbs .\cmd\XSLT.vbs "%TEMP%\package.xml" .\xslt\ExtractDownloadLinks-<w61>-<x86>-<glb>.xsl "%TEMP%\DownloadLinks-all.txt"
goto EoF

Right?

Or

%SystemRoot%\System32\cscript.exe //Nologo //E:vbs .\cmd\XSLT.vbs "%TEMP%\package.xml" .\xslt\ExtractDownloadLinks-<w60>-<x86>-<glb>.xsl , .\xslt\ExtractDownloadLinks-<w60>-<x64>-<glb>.xsl , .\xslt\ExtractDownloadLinks-<w61>-<x86>-<glb>.xsl "%TEMP%\DownloadLinks-all.txt"
goto EoF
lookoutnoob
 
Posts: 65
Joined: 04.06.2015, 20:42

Re: Download from microsoft website which folder put them in

Postby aker » 11.06.2015, 08:43

Remove "<" and ">" and all "goto EoF".
If you want Win 7 x64 and Win 8.0 x86 & x64, you have to use ...w61-x64-glb.xsl and ...w62-x86-glb.xsl and w62-x64-glb.xsl.
Also you should not use "DownloadLinks-all.txt" as XSLT.vbs overwrites an existing file.
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: Download from microsoft website which folder put them in

Postby lookoutnoob » 11.06.2015, 15:29

I want to run the ''ExtractDownloadLinks-all'' automatically through a C# program.
So I write is:
System.Diagnostics.Process.Start("C:\\Users\\me\\Desktop\\trunk-r664\\trunk\\ExtractDownloadLinks-all");

But I get the following error in my cmd when running the C# program:

Can not open input file: c:\users\me\appdata\local\temp\packacge.cab
Can not open input file: c:\users\me\appdata\local\temp\wsusscn2.cab

Do you possible know how to fix this?

The script looks like this now:

@echo off
rem *** Author: T. Wittrock, Kiel ***

if not exist "%TEMP%\wsusscn2.cab" (
.\bin\wget.exe -N -i .\static\StaticDownloadLinks-wsus.txt -P "%TEMP%"
if exist "%TEMP%\wuredist.cab" del "%TEMP%\wuredist.cab"
if exist "%TEMP%\WindowsUpdateAgent30-x64.exe" del "%TEMP%\WindowsUpdateAgent30-x64.exe"
if exist "%TEMP%\WindowsUpdateAgent30-x86.exe" del "%TEMP%\WindowsUpdateAgent30-x86.exe"
)
if exist "%TEMP%\package.cab" del "%TEMP%\package.cab"
if exist "%TEMP%\package.xml" del "%TEMP%\package.xml"
%SystemRoot%\System32\expand.exe "%TEMP%\wsusscn2.cab" -F:package.cab "%TEMP%"
%SystemRoot%\System32\expand.exe "%TEMP%\package.cab" "%TEMP%\package.xml"
del "%TEMP%\package.cab"


%SystemRoot%\System32\cscript.exe //Nologo //E:vbs .\cmd\XSLT.vbs "%TEMP%\package.xml" .\xslt\ExtractDownloadLinks-w60-x64-glb.xsl "%TEMP%\DownloadLinks-all.txt"


%SystemRoot%\System32\cscript.exe //Nologo //E:vbs .\cmd\XSLT.vbs "%TEMP%\package.xml" .\xslt\ExtractDownloadLinks-w60-x86-glb.xsl "%TEMP%\DownloadLinks-all.txt"

del "%TEMP%\package.xml"
del "%TEMP%\wsusscn2.cab"

:EoF
lookoutnoob
 
Posts: 65
Joined: 04.06.2015, 20:42

Re: Download from microsoft website which folder put them in

Postby aker » 12.06.2015, 04:59

Please declare it this way:
Code: Select all
System.Diagnostics.Process wsusou = new Process();
wsusou.StartInfo.FileName = "cmd.exe";
wsusou.StartInfo.Arguments = @"/k C:\Users\me\Desktop\trunk-r664\trunk\ExtractDownloadLinks-all.cmd"; // replace "/k" with "/c", if cmd should auto-close
wsusou.StartInfo.WorkingDirectory = @"C:\Users\me\Desktop\trunk-r664\trunk";
wsusou.Start();
while (wsusou.HasExited ==false) {
System.Threading.Thread.Sleep(100);
}
wsusou.Dispose();

That should work, if not, post a screenshot of the cmd (which should stay open after the script finished).
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: Download from microsoft website which folder put them in

Postby lookoutnoob » 12.06.2015, 08:14

Aker, thank you very much, I was figuring this out for quit some time :ugeek:
Such a nice code!

This is what I get after running it: http://imgur.com/lNQ9FmZ
lookoutnoob
 
Posts: 65
Joined: 04.06.2015, 20:42

Re: Download from microsoft website which folder put them in

Postby aker » 12.06.2015, 20:01

Please post the complete content of the script file in [code]-Tags so I can take a look at it.

The whitelisting-scripts are written now, I'll test them this weekend. (The current implementation has a few problems: you must not run the DoUpdate.cmd on two systems at once (if you use wsusou on a network drive) & the time required for an installation run will increase by the time, wsusou needs for determining missing updates as the code will be executed twice)
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: Download from microsoft website which folder put them in

Postby lookoutnoob » 12.06.2015, 21:15

This is what I have till now, not the cleanest code yet. At the moment it reads this excel file: https://support.industry.siemens.com/cs ... 0&lc=en-WW (after you downloaded it) It runs ur program and read th .txt file. And then it makes a new excel file with some sheets. I didnt figure out how to create sheets and place data in sheets tho... :/

I want this: excel doc with multiple sheets: named : "windows -xp", "Windows 7", "office 2010" etc etc.
In those sheets I want to compare the https://support.industry.siemens.com/cs ... 0&lc=en-WW with the DownloadLinks-all.txt
Last edited by lookoutnoob on 14.06.2015, 21:22, edited 1 time in total.
lookoutnoob
 
Posts: 65
Joined: 04.06.2015, 20:42

Re: Download from microsoft website which folder put them in

Postby aker » 12.06.2015, 22:41

Could you post the cmd-script too, so I can take a look at it.
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

PreviousNext

Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 38 guests