XVL Player installation

Antworten
Benutzeravatar
ebarriosjr
Beiträge: 26
Registriert: 24 Jun 2014, 11:03

XVL Player installation

Beitrag von ebarriosjr »

Hello all,

i am having a problem with an installer and i think maybe you guys can help me.

I am triying to install an XVL Player via OPSI but it is impossible. I can make an silent install direct on each laptop but when i try remote the installer appear for only 1 or 2 seconds and disappear....

I get the error in the logs: ExitCode -1073741819

Does anyone have an idea what is causing this?

This is the code in the setup.ins:

Code: Alles auswählen


; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/

[Actions]
requiredWinstVersion >= "4.11.2.6"

DefVar $MsiId$
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$  
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$

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$       = "xvlplayer"
Set $MinimumSpace$    = "500 MB"
; the path were we find the product after the installation
Set $InstallDir$      = "%ProgramFiles64Dir%\Lattice"
Set $LicenseRequired$ = "false"
Set $LicensePool$     = "p_" + $ProductId$
; ----------------------------------------------------------------

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$ + ".png" $ProductId$
	
	if FileExists("%ScriptPath%\delsub64.ins")
		comment "Start uninstall sub section"
		Sub "%ScriptPath%\delsub64.ins"
	endif
	
	Message "Installing " + $ProductId$ + " ..."
	
	comment "Start setup program"
	ChangeDirectory "%SCRIPTPATH%"
	Winbatch_install 
	Sub_check_exitcode
	
endif

[Winbatch_install]
; Choose one of the following examples as basis for your installation
; You can use $LicenseKey$ var to pass a license key to the installer
;
; === Nullsoft Scriptable Install System ================================================================
; "%ScriptPath%\Setup.exe" /S
;
; === MSI package =======================================================================================
; You may use the parameter PIDKEY=$Licensekey$
; msiexec /i "%ScriptPath%\some.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
;
; === InstallShield + MSI=====================================================================================
; Attention: The path to the log file should not contain any whitespaces
; "%ScriptPath%\setup.exe" /s /v" /l* $LogDir$\$ProductId$.install_log.txt /qb! ALLUSERS=1 REBOOT=ReallySuppress"
; "%ScriptPath%\setup.exe" /s /v" /qb! ALLUSERS=2 REBOOT=ReallySuppress"
;
; === InstallShield =====================================================================================
; Create setup.iss answer file by running: setup.exe /r /f1"c:\setup.iss"
; You may use an answer file by the parameter /f1"c:\setup.iss"
; "%ScriptPath%\setup.exe" /s /sms /f2"$LogDir$\$ProductId$.install_log.txt"
;
; === Inno Setup ========================================================================================
; http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
; You may create setup answer file by: setup.exe /SAVEINF="filename"
; You may use an answer file by the parameter /LOADINF="filename"
"%SCRIPTPATH%\setup.exe" /s /a /s /sms /f1"C:\Program Files\Lattice\files\setup.iss"


[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/aa372835(VS.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


Thanks for the help....
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: XVL Player installation

Beitrag von d.oertel »

Hi,
I can make an silent install direct on each laptop but when i try remote the installer appear for only 1 or 2 seconds and disappear....
Is "C:\Program Files\Lattice\files\setup.iss" existing at runtime ?

It may be, that the installer needs to be run in the context of a logged on administrator.

So you may test the
opsi-template-with-admin
http://download.uib.de/opsi_stable/doc/ ... ocal-admin

regards

d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Benutzeravatar
ebarriosjr
Beiträge: 26
Registriert: 24 Jun 2014, 11:03

Re: XVL Player installation

Beitrag von ebarriosjr »

C:\Program Files\Lattice\files\setup.iss exists at runtime....

I tried to run it in the context of a logged on administrator but i doesn't work either.

You can download the installer if you want at:

http://www.lattice3d.com/download/free- ... mi=9423187

Thanks for the help
Benutzeravatar
ebarriosjr
Beiträge: 26
Registriert: 24 Jun 2014, 11:03

Re: XVL Player installation

Beitrag von ebarriosjr »

Hello again,

i tried installing the software in normal mode (not silent) and the installer appears for a second and then goes away. I get the error:

Code: Alles auswählen

Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1073741819
Does anyone knows what could be wrong?

Thanks....
Benutzeravatar
ebarriosjr
Beiträge: 26
Registriert: 24 Jun 2014, 11:03

Re: XVL Player installation

Beitrag von ebarriosjr »

I have been triying to get it to work and i have found something very strange.

If I execute the setup64.ins from the laptop using the opsi-winst/winst32 it works perfectly.

But when i try to execute it from the opsi config editor from the server it doesn't work. I get the error:

Code: Alles auswählen


Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1073741819

Can anyone help me?

Thanks
ritsovih
Beiträge: 38
Registriert: 20 Mär 2013, 09:25

Re: XVL Player installation

Beitrag von ritsovih »

crappy installshield installer probably, have you tried d.oertel's suggestion already? I know that some installshield installers sometimes spawn another process running in the context of the loggedon user, even if the installer itself started in a privileged (ie SYSTEM) context, causing the installer to fail.

some other suggestions:

-turn installshield logging on: http://serverfault.com/a/61908 or http://helpnet.installshield.com/isxhel ... mdLine.htm
-sometimes installshield installers are nothing more than a wrapper around 1 or more msi files, you can try grabbing those (normally in %temp% ) and use them instead of the installshield installer
-dirty, but sometimes necessary, repackage the installer. http://www.itninja.com/community/dell-k ... kager-v1-2 is a free one
Antworten