Page 1 of 1 1
Topic Options
#128216 - 2004-10-21 10:28 AM How to install an MSI file via logon script
phollan1 Offline
Fresh Scripter

Registered: 2004-02-18
Posts: 9
Loc: UK
I have created an MSI file for Java and am trying to get it to install via the logon script. I can run the command line install msiexec /i \\<server>\netlogon\java2.msi /quiet
but cannot get it to work in the logon script have tried with run and with shell how should I be doing this

Top
#128217 - 2004-10-21 10:43 AM Re: How to install an MSI file via logon script
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
For test purposes, what does this return :

Code:

;your shell or run line here
"Returned error is : " + @error + " [" + @serror + "]" ?



[found your posting problem, you had a Capital C in the closing CODE TAG, the new board wants it all lower-case]

*thanx


Edited by Jochen (2004-10-21 10:46 AM)
_________________________



Top
#128218 - 2004-10-21 10:45 AM Re: How to install an MSI file via logon script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Please review this topic. Getting the correct quotes set is often difficult for new users

Not quite everything you wanted to know about RUN and SHELL
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB10&Number=81614


Also please review the information here for a silent install of Java
http://java.com/en/download/help/silent_install.jsp

[Jochen, what is up with the messed up format from your post? Did you use some Post Prep Tool ? ]

Top
#128219 - 2004-10-21 10:46 AM Re: How to install an MSI file via logon script
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Nay,

have some code tag messup there ... editing
_________________________



Top
#128220 - 2004-10-21 10:52 AM Re: How to install an MSI file via logon script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
woah...
jochen says to jochen: "found your posting problem"

neat!
_________________________
!

download KiXnet

Top
#128221 - 2004-10-21 10:54 AM Re: How to install an MSI file via logon script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
LOL, Nay mate... You missed it. I edited it, then Jochen re-edited it, which then replaced my name as the last editor of the thread.

I said to myself, Self, what shall we do today?

Top
#128222 - 2004-10-21 10:57 AM Re: How to install an MSI file via logon script
phollan1 Offline
Fresh Scripter

Registered: 2004-02-18
Posts: 9
Loc: UK
SHELL "msiexec /i \\<server>\netlogon\java2.msi /quiet"

this is what I have in the script
like I said if I type in
msiexec /i \\<server>\netlogon\java2.msi /quiet

in start run it works fine without seeing it install
just not via login script

Top
#128223 - 2004-10-21 11:00 AM Re: How to install an MSI file via logon script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Well I'd use SHELL %COMSPEC% /C and also place this after the SHELL line like Jochen asked, so that you can see what error is reported back.


"Returned error is : " + @error + " [" + @serror + "]" ?

Top
#128224 - 2004-10-21 11:08 AM Re: How to install an MSI file via logon script
phollan1 Offline
Fresh Scripter

Registered: 2004-02-18
Posts: 9
Loc: UK
I get the error 1603 Fatal error during installation

any ideas could it be admin rights

Top
#128225 - 2004-10-21 11:15 AM Re: How to install an MSI file via logon script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
My guess is because it can't write some file to the LOGON folder or similar issue, but here are some links to possible solutions or causes.

Error 1603: Fatal Error During Installation
http://consumer.installshield.com/kb.asp?id=Q111019

Technical Article #1004
http://www.netpro.com/products/changeauditor/ta/caadta1004.cfm


List of error codes and error messages for Windows Installer processes
http://support.microsoft.com/?kbid=229683

When you attempt to install a Windows Installer package on Windows 2000 or Windows XP, you receive 'Error 1603: A fatal error occurred during installation'?
http://www.jsiinc.com/SUBP/tip7700/rh7732.htm

Top
#128226 - 2004-10-21 11:32 AM Re: How to install an MSI file via logon script
phollan1 Offline
Fresh Scripter

Registered: 2004-02-18
Posts: 9
Loc: UK
definately seems to be permission problem how does this look now still not working though doesn't like sanur apparently
SHELL '%COMSPEC% /c runas /noprofile /user:administrator | SANUR <password> "msiexec /i \\<server>\netlogon\java2.msi /quiet"'

Top
#128227 - 2004-10-21 02:46 PM Re: How to install an MSI file via logon script
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Try copying the MSI file to the local hdd and run it from there.
Top
#128228 - 2004-10-21 02:54 PM Re: How to install an MSI file via logon script
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Also wondering why you are using the '/quiet' switch?

Windows Installer Switches
_________________________
Eric

Top
#128229 - 2004-10-21 03:04 PM Re: How to install an MSI file via logon script
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
for MSIs use

/qn (quiet, no interface)

or

/qb-! (minimum interface, no cancel button... progress bar only)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#128230 - 2004-10-21 08:10 PM Re: How to install an MSI file via logon script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Question, why did you create your own MSI? Java allows you to install how you want with their own switches. I provided the link in one of the previous posts as well.

http://java.com/en/download/help/silent_install.jsp

Also, as pointed out by others, try to get it working directly on your hard drive or another test machine, THEN worry about getting it to work from another location on the Network.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1003 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.067 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org