ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » AMI silent/unattended install

Post new topic  Reply to topic
 AMI silent/unattended install « View previous topic :: View next topic » 
Author Message
royr
PostPosted: Tue Jan 13, 2004 1:43 am    Post subject: AMI silent/unattended install Reply with quote

Acolyte

Joined: 30 Jun 2001
Posts: 65
Location: Israel

Hi,

I need to install the AMI runtime on some unattended Windows machines.
Couldn't find a documented method for doing this. However the AMI book specifies the directory structure of the installation, listing all the files added.

I thought about creating a package that would:
1. Create the directory structure as specified in the book
2. Create the "HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries AMI" folder in the registry.
3. Copy my local host and repository files (amt.xml and amthost.xml) to the default directory.

Will this do? Anyone tried it before?

-Roy.
Back to top
View user's profile Send private message
JasonE
PostPosted: Tue Jan 13, 2004 2:10 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Standard answer for old install shield pgms, record then replay:

Quote:
Setup -r

Run through install answer all questions as you want them

Post install, copy c:\windows\setup.iss somewhere safe!

Then for a silent install
Quote:
setup.exe -f1<responsefile> -s


Where <responsefile> = the location (full pathname) to the setup.iss file.
Example
setup.exe -f1c:\temp\setupp.iss -s
(Please note that there is no space between the pathname to the responsefile, and the option itself, and I would avoid using paths with spaces in unless you quote the cmd line correctly!)
Back to top
View user's profile Send private message
royr
PostPosted: Tue Jan 13, 2004 5:02 am    Post subject: Reply with quote

Acolyte

Joined: 30 Jun 2001
Posts: 65
Location: Israel

Hi Jason,

Thank you for the quick reply!

I tried that, now I'm getting a ResultCode=-12 in the setup.log file.
Checked here and the error is "Dialog boxes are out of order".

Here is my setup.iss file:
Quote:
[InstallShield Silent]
Version=v5.00.000
File=Response File
[File Transfer]
OverwriteReadOnly=NoToAll
[DlgOrder]
Dlg0=SdWelcome-0
Count=6
Dlg1=SdAskDestPath-0
Dlg2=SdComponentDialog2-0
Dlg3=SdSelectFolder-0
Dlg4=MessageBox-0
Dlg5=SdFinishReboot-0
[SdWelcome-0]
Result=1
[SdAskDestPath-0]
szDir=C:\Program Files\MQSeries Client
Result=1
[SdComponentDialog2-0]
Component-type=string
Component-count=7
Component-0=Program Libraries and DLLs
Component-1=AMI Files
Component-2=AMI Java
Component-3=DLLs
Component-4=C Samples
Component-5=C++ Samples
Component-6=Java Samples
Result=1
[SdSelectFolder-0]
szFolder=IBM MQSeries AMI
Result=1
[Application]
Name=MQSeries AMI
Version=1.2
Company=IBM
Lang=0009
[MessageBox-0]
Result=1
[SdFinishReboot-0]
Result=1
BootOption=0


Also tried changing my choices and re-recording to create a different .iss file, but I keep getting the same error.

I can't find a way to debug this without the InstallShield source code.

Can you check your sources for the reason?

Thanks in advance.
Back to top
View user's profile Send private message
JasonE
PostPosted: Tue Jan 13, 2004 5:18 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Hmmm - Works fine here on my machine. What version of AMI are you using, I downloaded mine from the web site this morning. The reason I ask is you are 'missing' a dialog (AskYesNo) and component (AMI Tool), but I dont think thats the cause. Are you sure the recording and the install was done with the same version of AMI?
Back to top
View user's profile Send private message
royr
PostPosted: Tue Jan 13, 2004 5:34 am    Post subject: Reply with quote

Acolyte

Joined: 30 Jun 2001
Posts: 65
Location: Israel

Version 1.2.3, same for recording and installing.

I deliberately unchecked the AMITool component while recording (since I only need runtime components), but I also tried with it and got the same error.

Can you post your .iss file so I can try it?
Back to top
View user's profile Send private message
JasonE
PostPosted: Tue Jan 13, 2004 5:48 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

This is with the 1.2.3 on the web today (there were 2 versions - dont ask!), but I dont think the version has anything to do with it though.

Setup.iss:

Quote:

[InstallShield Silent]
Version=v5.00.000
File=Response File
[File Transfer]
OverwriteReadOnly=NoToAll
[DlgOrder]
Dlg0=SdWelcome-0
Count=7
Dlg1=SdAskDestPath-0
Dlg2=SdComponentDialog2-0
Dlg3=SdSelectFolder-0
Dlg4=AskYesNo-0
Dlg5=MessageBox-0
Dlg6=SdFinishReboot-0
[SdWelcome-0]
Result=1
[SdAskDestPath-0]
szDir=C:\mqm
Result=1
[SdComponentDialog2-0]
Component-type=string
Component-count=8
Component-0=Program Libraries and DLLs
Component-1=AMI Tool
Component-2=AMI Files
Component-3=AMI Java
Component-4=DLLs
Component-5=C Samples
Component-6=C++ Samples
Component-7=Java Samples
Result=1
[SdSelectFolder-0]
szFolder=IBM MQSeries AMI
Result=1
[Application]
Name=MQSeries AMI
Version=1.2
Company=IBM
Lang=0009
[AskYesNo-0]
Result=1
[MessageBox-0]
Result=1
[SdFinishReboot-0]
Result=1
BootOption=0


Resulting setup.log:
Quote:

[InstallShield Silent]
Version=v5.00.000
File=Log File
[Application]
Name=MQSeries AMI
Version=1.2
Company=IBM
Lang=0009
[ResponseResult]
ResultCode=0
Back to top
View user's profile Send private message
royr
PostPosted: Tue Jan 13, 2004 5:54 am    Post subject: Reply with quote

Acolyte

Joined: 30 Jun 2001
Posts: 65
Location: Israel

Your setup.iss works!
Must be that missing AskYesNo dialog. Funny I don't get it while installing interactively.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » AMI silent/unattended install
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.