WinBatch: Nicht alle Variablen werden richtig eingesetzt...?
Verfasst: 12 Dez 2012, 15:27
Hallo,
Ich wollte mal fragen, wie es sein kann, dass in einer Winbatch-Sektion nur gewisse Variablen eingesetzt werden?
Man beachte im Log die allerletzte Zeile bei Executed process: ... ACADDEFAULTPROFILENAME="$Location$ - $Profile$" ACADSERVERFMTPATH="$LicServer$" ... !??
Folgender Skriptcode:
Das Log dazu:
Bitte um Hilfe!
Ich wollte mal fragen, wie es sein kann, dass in einer Winbatch-Sektion nur gewisse Variablen eingesetzt werden?
Man beachte im Log die allerletzte Zeile bei Executed process: ... ACADDEFAULTPROFILENAME="$Location$ - $Profile$" ACADSERVERFMTPATH="$LicServer$" ... !??
Folgender Skriptcode:
Code: Alles auswählen
DefVar $Profile$
DefVar $Location$
DefVar $LicServer$
DefVar $InstCmd$
Set $Profile$ = GetProductProperty("profile", "_")
Set $Location$ = GetProductProperty("location", "_")
DefVar $Basepath$
if not ($Profile$ = "_")
Set $Basepath$ = "G:\Programmeinstellungen\Autodesk\AutoCAD\" + $Profile$ + "\"
endif
if $Location$ = "Tirol"
Set $LicServer$ = "ATLICACAD101"
endif
if $Location$ = "Wien"
Set $LicServer$ = "ATLICACAD201"
endif
if $Location$ = "Graz"
Set $LicServer$ = "ATLICACAD301"
endif
if $Location$ = "Muenchen"
Set $LicServer$ = "DELICACAD101"
endif
Code: Alles auswählen
;== AutoCAD 2013 - Deutsch (German)
Message "Installing (16/20) AutoCAD 2013"
Set $InstCmd$='msiexec /i %scriptpath%\AdminImage\x64\acad\acad.msi TRANSFORMS="%scriptpath%\AdminImage\x64\de-de\acad\acad.mst;%scriptpath%\AdminImage\x64\acad\acad-BI.mst" ADSK_EULA_STATUS=#1 MUILANG=de-de ADSK_SOURCE_ROOT="%scriptpath%\AdminImage\" INSTALLDIR="C:\Program Files\Autodesk\AutoCAD 2013\" FILESINUSETEXT="" REBOOT=ReallySuppress ADSK_SETUP_EXE=1 ACADDEFAULTPROFILENAME="$Location$ - $Profile$" ACADSERVERFMTPATH="$LicServer$" ACADProfile_PrinterConfigDir="$Basepath$plotters" ACADProfile_PrinterDescDir="$Basepath$plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="$Basepath$Plot Styles" ACADProfile_SupportPath="$BasePath$support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="$BasePath$Templates" /qb-!'
Winbatch_Install
[Winbatch_Install]
$InstCmd$
Code: Alles auswählen
[5] [12.12.2012 08:24:48] Set $Profile$ = GetProductProperty("profile", "_")
[6] [12.12.2012 08:24:48] The value of the variable "$Profile$" is now: "Energie_Infrastruktur"
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] Set $Location$ = GetProductProperty("location", "_")
[6] [12.12.2012 08:24:48] The value of the variable "$Location$" is now: "Tirol"
[6] [12.12.2012 08:24:48] wInst has version 4.11.2.9, required is : >= 4.11
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] If
[5] [12.12.2012 08:24:48] $Profile$ = "_" <<< result false
[5] [12.12.2012 08:24:48] not ($Profile$ = "_") <<< result true
[5] [12.12.2012 08:24:48] Then
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] Set $Basepath$ = "G:\Programmeinstellungen\Autodesk\AutoCAD\" + $Profile$ + "\"
[6] [12.12.2012 08:24:48] The value of the variable "$Basepath$" is now: "G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\"
[5] [12.12.2012 08:24:48] EndIf
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] If
[5] [12.12.2012 08:24:48] $Location$ = "Tirol" <<< result true
[5] [12.12.2012 08:24:48] Then
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] Set $LicServer$ = "ATLICACAD101"
[6] [12.12.2012 08:24:48] The value of the variable "$LicServer$" is now: "ATLICACAD101"
[5] [12.12.2012 08:24:48] EndIf
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] If
[5] [12.12.2012 08:24:48] $Location$ = "Wien" <<< result false
[5] [12.12.2012 08:24:48] Then
[5] [12.12.2012 08:24:48] EndIf
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] If
[5] [12.12.2012 08:24:48] $Location$ = "Graz" <<< result false
[5] [12.12.2012 08:24:48] Then
[5] [12.12.2012 08:24:48] EndIf
[5] [12.12.2012 08:24:48]
[5] [12.12.2012 08:24:48] If
[5] [12.12.2012 08:24:48] $Location$ = "Muenchen" <<< result false
[5] [12.12.2012 08:24:48] Then
[5] [12.12.2012 08:24:48] EndIf
[......]
[5] [12.12.2012 08:29:39] message Installing (16/20) AutoCAD 2013
[5] [12.12.2012 08:29:39]
[5] [12.12.2012 08:29:39] Set $InstCmd$='msiexec /i P:\acad2013\AdminImage\x64\acad\acad.msi TRANSFORMS="P:\acad2013\AdminImage\x64\de-de\acad\acad.mst;P:\acad2013\AdminImage\x64\acad\acad-BI.mst" ADSK_EULA_STATUS=#1 MUILANG=de-de ADSK_SOURCE_ROOT="P:\acad2013\AdminImage\" INSTALLDIR="C:\Program Files\Autodesk\AutoCAD 2013\" FILESINUSETEXT="" REBOOT=ReallySuppress ADSK_SETUP_EXE=1 ACADDEFAULTPROFILENAME="$Location$ - $Profile$" ACADSERVERFMTPATH="$LicServer$" ACADProfile_PrinterConfigDir="$Basepath$plotters" ACADProfile_PrinterDescDir="$Basepath$plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="$Basepath$Plot Styles" ACADProfile_SupportPath="$BasePath$support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="$BasePath$Templates" /qb-!'
[6] [12.12.2012 08:29:39] The value of the variable "$InstCmd$" is now: "msiexec /i P:\acad2013\AdminImage\x64\acad\acad.msi TRANSFORMS="P:\acad2013\AdminImage\x64\de-de\acad\acad.mst;P:\acad2013\AdminImage\x64\acad\acad-BI.mst" ADSK_EULA_STATUS=#1 MUILANG=de-de ADSK_SOURCE_ROOT="P:\acad2013\AdminImage\" INSTALLDIR="C:\Program Files\Autodesk\AutoCAD 2013\" FILESINUSETEXT="" REBOOT=ReallySuppress ADSK_SETUP_EXE=1 ACADDEFAULTPROFILENAME="$Location$ - $Profile$" ACADSERVERFMTPATH="$LicServer$" ACADProfile_PrinterConfigDir="$Basepath$plotters" ACADProfile_PrinterDescDir="$Basepath$plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="$Basepath$Plot Styles" ACADProfile_SupportPath="$BasePath$support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="$BasePath$Templates" /qb-!"
[5] [12.12.2012 08:29:39]
[5] [12.12.2012 08:29:39] Execution of Winbatch_Install
[6] [12.12.2012 08:29:39] Call "msiexec /i P:\acad2013\AdminImage\x64\acad\acad.msi TRANSFORMS="P:\acad2013\AdminImage\x64\de-de\acad\acad.mst;P:\acad2013\AdminImage\x64\acad\acad-BI.mst" ADSK_EULA_STATUS=#1 MUILANG=de-de ADSK_SOURCE_ROOT="P:\acad2013\AdminImage\" INSTALLDIR="C:\Program Files\Autodesk\AutoCAD 2013\" FILESINUSETEXT="" REBOOT=ReallySuppress ADSK_SETUP_EXE=1 ACADDEFAULTPROFILENAME="$Location$ - $Profile$" ACADSERVERFMTPATH="$LicServer$" ACADProfile_PrinterConfigDir="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\plotters" ACADProfile_PrinterDescDir="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\Plot Styles" ACADProfile_SupportPath="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\Templates" /qb-!"
[6] [12.12.2012 08:29:39] Waiting until the called process is finished
[6] [12.12.2012 08:32:18] ExitCode 0 Executed process "msiexec /i P:\acad2013\AdminImage\x64\acad\acad.msi TRANSFORMS="P:\acad2013\AdminImage\x64\de-de\acad\acad.mst;P:\acad2013\AdminImage\x64\acad\acad-BI.mst" ADSK_EULA_STATUS=#1 MUILANG=de-de ADSK_SOURCE_ROOT="P:\acad2013\AdminImage\" INSTALLDIR="C:\Program Files\Autodesk\AutoCAD 2013\" FILESINUSETEXT="" REBOOT=ReallySuppress ADSK_SETUP_EXE=1 ACADDEFAULTPROFILENAME="$Location$ - $Profile$" ACADSERVERFMTPATH="$LicServer$" ACADProfile_PrinterConfigDir="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\plotters" ACADProfile_PrinterDescDir="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\Plot Styles" ACADProfile_SupportPath="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="G:\Programmeinstellungen\Autodesk\AutoCAD\Energie_Infrastruktur\Templates" /qb-!"
Code: Alles auswählen
opsi-client-agent 4.0.2.1-1 opsi.org client agent
opsi-winst 4.11.2.9-1 winst