Jump to content











Photo
- - - - -

Wusa, msu .. working directory ..(%TMP%)


  • Please log in to reply
2 replies to this topic

#1 Blackcrack

Blackcrack

    Frequent Member

  • Advanced user
  • 458 posts
  •  
    Germany

Posted 25 October 2018 - 06:09 AM

Hi,

 

i have build a batch for installing the whole msu updates:

http://www.blackysga...ot/batch-files/

 

i have only the task to setting up a workingDrive/Folder/place

to have the whole directorys in a folder where it is use to install

the installfolders, if i look on :

[10/25/2018, 7:36:45] === Logging started: 2018/10/25 07:36:45 ===
[10/25/2018, 7:36:45] Executable: D:\Linux-win-save\0-Windows\00=-Win7-servicepack-rollup-win7-x64-update-=00\ndp45-kb4024845-x64_484c984f4c6692c49a475e49d59a1ba2153074ef.exe v4.5.52405.36405
[10/25/2018, 7:36:45] --- logging level: standard ---
[10/25/2018, 7:36:45] Successfully bound to the ClusApi.dll
[10/25/2018, 7:36:45] Error 0x80070424: Failed to open the current cluster
[10/25/2018, 7:36:45] Cluster drive map: ''
[10/25/2018, 7:36:45] Considering drive: 'C:\'...
[10/25/2018, 7:36:45] Considering drive: 'D:\'...
[10/25/2018, 7:36:45] Considering drive: 'E:\'...
[10/25/2018, 7:36:45] Drive 'E:\' is rejected because of the unknown or unsuitable drive type
[10/25/2018, 7:36:45] Considering drive: 'G:\'...
[10/25/2018, 7:36:45] Drive 'D:\' has been selected as the largest fixed drive
[10/25/2018, 7:36:45] Directory 'D:\8adaa3de84ae22f8f8fc33\' has been selected for file extraction
[10/25/2018, 7:36:45] Extracting files to: D:\8adaa3de84ae22f8f8fc33\
[10/25/2018, 7:36:51] Extraction took 5.491 seconds
[10/25/2018, 7:36:51] Executing command line: 'D:\8adaa3de84ae22f8f8fc33\\Setup.exe   /q /norestart '
[10/25/2018, 7:36:56] Exiting with result code: 0x0
[10/25/2018, 7:36:56] === Logging stopped: 2018/10/25 07:36:56 ===

fellowing me up this :

[10/25/2018, 7:36:45] Drive 'D:\' has been selected as the largest fixed drive
[10/25/2018, 7:36:45] Directory 'D:\8adaa3de84ae22f8f8fc33\' has been selected for file extraction

where at end stay the "trash"-install-folder and i have it to delete manually,

now, how can i tell the wusa/msu file , that he should take the %tmp% to put

all folder in this %tmp% folder and use as "working fixed biggest drive"-workspace ?

 

because after the batch-job is the d: fully too garbage of these update-folders.

 

how can i say "largest fixed drive" is %tmp% ?

or can i say the wusa/msu-file have to take the %tmp% (without say to extraction path is %tmp% for all because the target %tmp% should only be the head folder and not the extractions-path where is the setup into..)

 

have you a solution ?

 

best regards

Blacky



#2 netlord

netlord

    Member

  • Members
  • 36 posts
  •  
    Germany

Posted 25 October 2018 - 08:11 AM

Hallo Blacky

two ideas:

1. use the /extract -switch before installing the package. Here you can define where to extract the archive.
2. Always create the log-file you´re showing here and read the temp-directory from this log. Afterwards you parse the file for the temp-folder and you can delete it.
(3) Do this in powershell - I didn't examined the whole script, but as far i see now it would be easier in powershell

Viel Erfolg!

Edited by netlord, 25 October 2018 - 08:12 AM.


#3 Blackcrack

Blackcrack

    Frequent Member

  • Advanced user
  • 458 posts
  •  
    Germany

Posted 25 October 2018 - 08:54 AM

but the extract switch do not a create a 234230924209742394 folder it use a spezific folder,
so i need a possible before.. to use the drive.swich to manipulating.. for say the package, there is the biggest drive\this folder
to use the setup routine automatic the temp-folder..

i have 9Gigabyte Updates and let them run.. check out the batch and i have collecting
in at the start of the "servicepack""2""" for Win7 ..moment :

Spoiler




and this is the list.. ..
In Powershell.. noee.. this should run in any WinNt7 as first updatescript..
and therefore just easy in prompt of the win7 ..

Maybe have anyone an better solution ?






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users