Problem with localboot software deployment
Verfasst: 17 Jul 2012, 09:06
Hello,
I'm newbie with opsi but i'm really enjoying with it, I have a server configured and some clients with the agent, the predefined opsi localboot packages are being installed without problems but when i try to define my own software products I'm receiving an error, here you have the error log, maybe somebody know whats this issue, I don't have experience with windows scripting methodologies
instlog
[4] [7/16/2012 23:09:57] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:57] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:57] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:58] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:58] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:59] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:59] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:00] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:00] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:00] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:01] Warning: file not found :p:\7zip\setup - giving up
[4] [7/16/2012 23:10:01] Script p:\7zip\setup not found File Err. No. 2 (The system cannot find the file specified.
) - retrying
[4] [7/16/2012 23:10:02] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:02] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:03] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:03] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:03] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:04] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:04] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:05] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:05] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:05] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:06] Warning: file not found :p:\7zip\setup - giving up
[3] [7/16/2012 23:10:06] Script p:\7zip\setup not found File Err. No. 2 (The system cannot find the file specified.
) - giving up
[5] [7/16/2012 23:10:06] Error level set to fatal
[6] [7/16/2012 23:10:06] JSON service request https://172.20.180.28:4447/rpc setProductActionRequest
[1] [7/16/2012 23:10:06] product "7zip set to update
[1] [7/16/2012 23:10:06] Update script name:
[5] [7/16/2012 23:10:06] no script file name given
[1] [7/16/2012 23:10:06] we have no update script
[6] [7/16/2012 23:10:06] JSON service request https://172.20.180.28:4447/rpc productOnClient_updateObject
[6] [7/16/2012 23:10:06] Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
[6] [7/16/2012 23:10:06] Variable "RebootRequested" is keeping its value "0"
[6] [7/16/2012 23:10:06] Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt"
[6] [7/16/2012 23:10:06] Variable "ContinueLogFile" is keeping its value "0"
[6] [7/16/2012 23:10:06] Variable "NumberOfErrors" not found. Code: 2
[6] [7/16/2012 23:10:06] Key flushed
[6] [7/16/2012 23:10:06] Key closed
[6] [7/16/2012 23:10:08] JSON service request https://172.20.180.28:4447/rpc backend_exit
[1] [7/16/2012 23:10:08] ============ winst Version 4.11.2.9 WIN32 is regularly exiting. Time 2012-07-16 23:10:08 .
What i'm tryin to do is to execute an exe that comes from a compilation of an AutoIT script with the original exe added to it, the executable works well if I copy it to the client manually.
Here you have the setup.ins file I created modifying the tightVNC script from the Wiki. This is the only file I generated.
[Initial]
LogLevel=9
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; let started programs run in front of the winst window
StayOnTop=false
[Actions]
; requiredWinstVersion >= "4.10.8.6"
DefVar $UninstallProgram32$
DefVar $UninstallProgram64$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir32$
DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $INST_SystemType$
DefVar $INST_architecture$
DefVar $Version$
DefVar $Inst_Cmd32$
DefVar $Inst_Cmd64$
DefVar $Inst_Prg$
DefVar $Uninst_Prg$
Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "7zip"
Set $Version$ = "9.20"
Set $MinimumSpace$ = "3 MB"
; the path were we find the product after the installation
Set $InstallDir32$ = "%ProgramFilesDir%\7-Zip"
Set $InstallDir64$ = "%ProgramFilesDir%\7-Zip"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
Set $Inst_Prg$ = "7zip.exe"
; Set $Uninst_Prg$ = "uninstall.exe"
; Set $Inst_Cmd32$ = '/S'
; Set $Inst_Cmd64$ = '/S'
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".jpg" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
if $LicenseRequired$ = "true"
comment "Licensing required, reserve license and get license key"
Sub_get_licensekey
endif
comment "installing"
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
Message "Installing " + $ProductId$ + " 32 Bit..."
comment "Start setup program"
Winbatch_install_32
Sub_check_exitcode
endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + " 64 Bit..."
comment "Start setup program"
Winbatch_install_64
Sub_check_exitcode
endif
endif
[Winbatch_install_32]
%ScriptPath%\$Inst_Prg$ $Inst_Cmd32$
; regedit /S "%ScriptPath%\TightVNC.reg"
[Winbatch_install_64]
%ScriptPath%\$Inst_Prg$ $Inst_Cmd32$
; regedit /S "%ScriptPath%\TightVNC_win7.reg"
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library ... S.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
comment "Looks good: setup program gives exitcode zero"
else
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
if ($ExitCode$ = "1605")
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
comment "Uninstall of a not installed product failed - no problem"
else
if ($ExitCode$ = "1641")
comment "looks good: setup program gives exitcode 1641"
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
else
if ($ExitCode$ = "3010")
comment "looks good: setup program gives exitcode 3010"
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
else
logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
isFatalError
endif
endif
endif
endif
Thank you very much,
Carles Cortes
I'm newbie with opsi but i'm really enjoying with it, I have a server configured and some clients with the agent, the predefined opsi localboot packages are being installed without problems but when i try to define my own software products I'm receiving an error, here you have the error log, maybe somebody know whats this issue, I don't have experience with windows scripting methodologies
instlog
[4] [7/16/2012 23:09:57] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:57] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:57] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:58] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:58] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:59] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:09:59] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:00] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:00] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:00] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:01] Warning: file not found :p:\7zip\setup - giving up
[4] [7/16/2012 23:10:01] Script p:\7zip\setup not found File Err. No. 2 (The system cannot find the file specified.
) - retrying
[4] [7/16/2012 23:10:02] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:02] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:03] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:03] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:03] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:04] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:04] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:05] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:05] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:05] Warning: file not found :p:\7zip\setup -retrying
[4] [7/16/2012 23:10:06] Warning: file not found :p:\7zip\setup - giving up
[3] [7/16/2012 23:10:06] Script p:\7zip\setup not found File Err. No. 2 (The system cannot find the file specified.
) - giving up
[5] [7/16/2012 23:10:06] Error level set to fatal
[6] [7/16/2012 23:10:06] JSON service request https://172.20.180.28:4447/rpc setProductActionRequest
[1] [7/16/2012 23:10:06] product "7zip set to update
[1] [7/16/2012 23:10:06] Update script name:
[5] [7/16/2012 23:10:06] no script file name given
[1] [7/16/2012 23:10:06] we have no update script
[6] [7/16/2012 23:10:06] JSON service request https://172.20.180.28:4447/rpc productOnClient_updateObject
[6] [7/16/2012 23:10:06] Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
[6] [7/16/2012 23:10:06] Variable "RebootRequested" is keeping its value "0"
[6] [7/16/2012 23:10:06] Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt"
[6] [7/16/2012 23:10:06] Variable "ContinueLogFile" is keeping its value "0"
[6] [7/16/2012 23:10:06] Variable "NumberOfErrors" not found. Code: 2
[6] [7/16/2012 23:10:06] Key flushed
[6] [7/16/2012 23:10:06] Key closed
[6] [7/16/2012 23:10:08] JSON service request https://172.20.180.28:4447/rpc backend_exit
[1] [7/16/2012 23:10:08] ============ winst Version 4.11.2.9 WIN32 is regularly exiting. Time 2012-07-16 23:10:08 .
What i'm tryin to do is to execute an exe that comes from a compilation of an AutoIT script with the original exe added to it, the executable works well if I copy it to the client manually.
Here you have the setup.ins file I created modifying the tightVNC script from the Wiki. This is the only file I generated.
[Initial]
LogLevel=9
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; let started programs run in front of the winst window
StayOnTop=false
[Actions]
; requiredWinstVersion >= "4.10.8.6"
DefVar $UninstallProgram32$
DefVar $UninstallProgram64$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir32$
DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $INST_SystemType$
DefVar $INST_architecture$
DefVar $Version$
DefVar $Inst_Cmd32$
DefVar $Inst_Cmd64$
DefVar $Inst_Prg$
DefVar $Uninst_Prg$
Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "7zip"
Set $Version$ = "9.20"
Set $MinimumSpace$ = "3 MB"
; the path were we find the product after the installation
Set $InstallDir32$ = "%ProgramFilesDir%\7-Zip"
Set $InstallDir64$ = "%ProgramFilesDir%\7-Zip"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
Set $Inst_Prg$ = "7zip.exe"
; Set $Uninst_Prg$ = "uninstall.exe"
; Set $Inst_Cmd32$ = '/S'
; Set $Inst_Cmd64$ = '/S'
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".jpg" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
if $LicenseRequired$ = "true"
comment "Licensing required, reserve license and get license key"
Sub_get_licensekey
endif
comment "installing"
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
Message "Installing " + $ProductId$ + " 32 Bit..."
comment "Start setup program"
Winbatch_install_32
Sub_check_exitcode
endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + " 64 Bit..."
comment "Start setup program"
Winbatch_install_64
Sub_check_exitcode
endif
endif
[Winbatch_install_32]
%ScriptPath%\$Inst_Prg$ $Inst_Cmd32$
; regedit /S "%ScriptPath%\TightVNC.reg"
[Winbatch_install_64]
%ScriptPath%\$Inst_Prg$ $Inst_Cmd32$
; regedit /S "%ScriptPath%\TightVNC_win7.reg"
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library ... S.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
comment "Looks good: setup program gives exitcode zero"
else
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
if ($ExitCode$ = "1605")
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
comment "Uninstall of a not installed product failed - no problem"
else
if ($ExitCode$ = "1641")
comment "looks good: setup program gives exitcode 1641"
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
else
if ($ExitCode$ = "3010")
comment "looks good: setup program gives exitcode 3010"
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
else
logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
isFatalError
endif
endif
endif
endif
Thank you very much,
Carles Cortes