winbatch call of not executable file is deprecated

Antworten
jdieler
Beiträge: 6
Registriert: 23 Mai 2012, 14:48

winbatch call of not executable file is deprecated

Beitrag von jdieler »

Hallo zusammen,

ich versuche mich grade an der Verteilung von Office 2010.
Damit das ordnetlich läuft, sollte als erstes alles, was älter ist deinsstalliert werden.
Nach ein Bisschen stöbern habe ich die FixIt Pakete gefunden und erfolgreich (mehr oder weniger) getestet.
In einer 32Bit Umgebung funktioniert alles wie gewünscht. Bei einem 64Bit Rechner leider nicht.

Ich habe in der uninstall.ins zwei Versionen ausprobiert. Beide ohne Erfolg.
Bei der zweiten gibt es wenigstens die Meldung, das es veraltet wäre, eine nicht ausführbare Datei auf zu rufen... Wie ist denn dann bitte die Alternative und warum geht es unter 32Bit?

Code: Alles auswählen

[Winbatch_uninstall_32]
cscript "%ScriptPath%\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S
"%ScriptPath%\OffScrub10.vbs" CLIENTALL /BYPASS 1,2
[5] [5/23/2012 14:50:25] Execution of Winbatch_uninstall_32
[6] [5/23/2012 14:50:25] Call "cscript "\\opsi\opsi_workbench\office2010proplus\CLIENT_DATA\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S"
[6] [5/23/2012 14:50:25] Waiting until the called process is finished
[6] [5/23/2012 14:50:26] ExitCode 1921 Executed process "cscript "\\opsi\opsi_workbench\office2010proplus\CLIENT_DATA\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S"
[6] [5/23/2012 14:50:26] Call ""\\opsi\opsi_workbench\office2010proplus\CLIENT_DATA\OffScrub10.vbs" CLIENTALL /BYPASS 1,2"
[6] [5/23/2012 14:50:26] Waiting until the called process is finished
[4] [5/23/2012 14:50:26] winbatch call of not executable file: \\opsi\opsi_workbench\office2010proplus\CLIENT_DATA\OffScrub10.vbs is deprecated
[6] [5/23/2012 14:50:26] ExitCode 1921 Executed process ""\\opsi\opsi_workbench\office2010proplus\CLIENT_DATA\OffScrub10.vbs" CLIENTALL /BYPASS 1,2"
[6] [5/23/2012 14:50:26]

Hat jemand eine Idee?
Vielen Dank schonmal.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1363
Registriert: 01 Jul 2008, 12:10

Re: winbatch call of not executable file is deprecated

Beitrag von wolfbardo »

jdieler hat geschrieben:

Code: Alles auswählen

[Winbatch_uninstall_32]
cscript "%ScriptPath%\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S
"%ScriptPath%\OffScrub10.vbs" CLIENTALL /BYPASS 1,2
Die Verwendung von

Code: Alles auswählen

cscript
statt

Code: Alles auswählen

cscript.exe
ist deprecated.

Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
jdieler
Beiträge: 6
Registriert: 23 Mai 2012, 14:48

Re: winbatch call of not executable file is deprecated

Beitrag von jdieler »

Vielen Dank für die schnelle Antwort.
Irgendwas übersehe ich aber immernoch :-(

Code: Alles auswählen

cscript.exe "%ScriptPath%\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S
[5] [5/24/2012 8:50:43] message Deinstalliere alte Office Versionen...
[5] [5/24/2012 8:50:43]
[5] [5/24/2012 8:50:43] Execution of Winbatch_uninstall_32
[6] [5/24/2012 8:50:43] Call "cscript.exe "\\opsi\opsi_workbench\office2010proplus\CLIENT_DATA\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S"
[6] [5/24/2012 8:50:43] Waiting until the called process is finished
[6] [5/24/2012 8:50:44] ExitCode 1921 Executed process "cscript.exe "\\opsi\opsi_workbench\office2010proplus\CLIENT_DATA\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S"

Code: Alles auswählen

"%Systemroot%\system32\cscript.exe" "%ScriptPath%\OffScrub10.vbs" CLIENTALL /BYPASS 1,2 /S
funktioniert leider auch nicht :-(
jdieler
Beiträge: 6
Registriert: 23 Mai 2012, 14:48

Re: winbatch call of not executable file is deprecated

Beitrag von jdieler »

Ich konnte das Problem ein wenig weiter eingrezen, aber 'ne Lösung habe ich leider trotzdem nicht.
Wenn ich das OffScrub über Opsi aufrufe scheint er Probleme mit den Zugriff auf die Registry zu haben.
Microsoft Customer Support Services - Office 2010 Removal Utility

Version: 1.36_fixit
64 bit OS: Wahr
Start removal: 24.05.2012 09:47:25

Insufficient registry access permissions - exiting
Remove temporary registry entries
Im Script sieht der Bereich so aus:

Code: Alles auswählen

Function CheckRegPermissions
    Const KEY_QUERY_VALUE       = &H0001
    Const KEY_SET_VALUE         = &H0002
    Const KEY_CREATE_SUB_KEY    = &H0004
    Const DELETE                = &H00010000

    Dim sSubKeyName
    Dim fReturn

    CheckRegPermissions = True
    sSubKeyName = "Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\"
    oReg.CheckAccess HKLM, sSubKeyName, KEY_QUERY_VALUE, fReturn
    If Not fReturn Then CheckRegPermissions = False
    oReg.CheckAccess HKLM, sSubKeyName, KEY_SET_VALUE, fReturn
    If Not fReturn Then CheckRegPermissions = False
    oReg.CheckAccess HKLM, sSubKeyName, KEY_CREATE_SUB_KEY, fReturn
    If Not fReturn Then CheckRegPermissions = False
    oReg.CheckAccess HKLM, sSubKeyName, DELETE, fReturn
    If Not fReturn Then CheckRegPermissions = False

End Function 'CheckRegPermissions
Die Registrys der 32 und 64Bit Maschinen sehen an der Stelle auch gleich aus.

Was ich aber immernoch nicht verstehe ist, was macht opsi da anders?
Warum geht das bei einem direkten Aufruf der .vbs Datei auch mit 64Bit?

Verwirrte Grüße
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1363
Registriert: 01 Jul 2008, 12:10

Re: winbatch call of not executable file is deprecated

Beitrag von wolfbardo »

bitte mal

http://download.uib.de/opsi4.0/doc/html ... inst-64bit

lesen (oder sich unsere Werbung in eigener Sache anhoeren...)

Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
jdieler
Beiträge: 6
Registriert: 23 Mai 2012, 14:48

Re: winbatch call of not executable file is deprecated

Beitrag von jdieler »

Vielen Dank für den Schubs in die richtige Richtung.

So scheint es zu funktionieren.

Code: Alles auswählen

Message "Deinstalliere alte Office Versionen..."
		

if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
	DosBatch_32 winst /32Bit
	Sub_check_exitcode
endif


if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
	DosBatch_64 winst /64Bit
	Sub_check_exitcode
endif


[DosBatch_32]
@echo off
cscript.exe //NOLOGO "%ScriptPath%\OffScrub03.vbs" CLIENTALL /NoCancel /BYPASS 1,2 /S
cscript.exe //NOLOGO "%ScriptPath%\OffScrub07.vbs" CLIENTALL /NoCancel /BYPASS 1,2 /S
cscript.exe //NOLOGO "%ScriptPath%\OffScrub10.vbs" CLIENTALL /NoCancel /BYPASS 1,2 /S

[DosBatch_64]
@echo off
cscript.exe //NOLOGO "%ScriptPath%\OffScrub03.vbs" CLIENTALL /NoCancel /BYPASS 1,2 /S
cscript.exe //NOLOGO "%ScriptPath%\OffScrub07.vbs" CLIENTALL /NoCancel /BYPASS 1,2 /S
cscript.exe //NOLOGO "%ScriptPath%\OffScrub10.vbs" CLIENTALL /NoCancel /BYPASS 1,2 /S
Benutzeravatar
SisterOfMercy
Beiträge: 1529
Registriert: 22 Jun 2012, 19:18

Re: winbatch call of not executable file is deprecated

Beitrag von SisterOfMercy »

I have a similar problem, tcunin64.exe looks like a .exe to me, so I don't know what's up.

Code: Alles auswählen

[5] [19-07-2012 15:39:36]     Execution of Winbatch_uninstall_64
[6] [19-07-2012 15:39:36]       Call ""C:\Program Files\totalcmd\TCUNIN64.EXE" /7"
[6] [19-07-2012 15:39:36]          Waiting until the called process is finished
[4] [19-07-2012 15:39:36]       winbatch call of not executable file: C:\Program Files\totalcmd\TCUNIN64.EXE is deprecated
[6] [19-07-2012 15:40:10]       ExitCode 0    Executed process ""C:\Program Files\totalcmd\TCUNIN64.EXE" /7"
With the DosBatch route the uninstallation fails, so I keep using the winbatch method.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: winbatch call of not executable file is deprecated

Beitrag von d.oertel »

Hi,

try to call
TCUNIN64.exe
instead of
TCUNIN64.EXE

I just forgot the lowercase while testing if the file is a .exe.

This will be fixed in the next Version.

Thanks for the hint.

d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Benutzeravatar
SisterOfMercy
Beiträge: 1529
Registriert: 22 Jun 2012, 19:18

Re: winbatch call of not executable file is deprecated

Beitrag von SisterOfMercy »

d.oertel hat geschrieben: try to call
TCUNIN64.exe
instead of
TCUNIN64.EXE
This solves the problem, thanks!
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten