cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
harini
Level 2

Silent install in Installscript projects

I am working on silent installation for Installscript project. I generated Response file using -r option. But when I try to run using -s option after copying setup.iss in same folder as setup.exe i get error with ResultCode=-3. I know that it means "Required data not found in the Setup.iss file" but I can't find anything wrong with response file. After debugging I found that it is having some problem reading subcomponents details like "szComponent-#" in ComponentDialog as when I ran without using componentDialog, it installed successfully. I wanted to know if I have to add any installscript code to read ComponentDialog information from setup.iss file when MODE=SILENTMODE ? I am not using any cutom dialogs, so I don't think that should cause any issue.

setup.iss file -

[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{489E377E-CD57-403F-BC37-F887468DDF94}-DlgOrder]
Dlg0={489E377E-CD57-403F-BC37-F887468DDF94}-SdWelcome-0
Count=23
Dlg1={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-0
Dlg2={489E377E-CD57-403F-BC37-F887468DDF94}-SdSetupTypeEx-0
Dlg3={489E377E-CD57-403F-BC37-F887468DDF94}-ComponentDialog-0
Dlg4={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-1
Dlg5={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-2
Dlg6={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-3
Dlg7={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit2-0
Dlg8={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-0
Dlg9={489E377E-CD57-403F-BC37-F887468DDF94}-MessageBox-0
Dlg10={489E377E-CD57-403F-BC37-F887468DDF94}-MessageBox-1
Dlg11={489E377E-CD57-403F-BC37-F887468DDF94}-SdSelectFolder-0
Dlg12={489E377E-CD57-403F-BC37-F887468DDF94}-AskOptions-0
Dlg13={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-1
Dlg14={489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-0
Dlg15={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-2
Dlg16={489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-1
Dlg17={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-3
Dlg18={489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-2
Dlg19={489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-4
Dlg20={489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-3
Dlg21={489E377E-CD57-403F-BC37-F887468DDF94}-SdFinish-0
Dlg22={489E377E-CD57-403F-BC37-F887468DDF94}-MessageBox-2
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdWelcome-0]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-0]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdSetupTypeEx-0]
Result=Custom
[{489E377E-CD57-403F-BC37-F887468DDF94}-ComponentDialog-0]
szDir=C:\Program Files\IGT
szComponent-type=string
szComponent-count=5
szComponent-0=Client
szComponent-1=Server
szComponent-2=EZPayDB
szComponent-3=Scis
szComponent-4=Offline Client Cashier
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-1]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-2]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-3]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit2-0]
szEdit1=se413189
szEdit2=test_ezpay
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-0]
szEdit1=MSSQLSERVER
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-MessageBox-0]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-MessageBox-1]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdSelectFolder-0]
szFolder=EZPay
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-AskOptions-0]
Result=1
Sel-0=0
Sel-1=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-1]
szEdit1=' '
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-0]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-2]
szEdit1=' '
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-1]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowDlgEdit1-3]
szEdit1=' '
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-2]
Result=1
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdShowInfoList-4]
Result=1
[Application]
Name=EZPay
Version=8.2
Company=IGT
Lang=0009
[{489E377E-CD57-403F-BC37-F887468DDF94}-AskYesNo-3]
Result=0
[{489E377E-CD57-403F-BC37-F887468DDF94}-SdFinish-0]
Result=1
bOpt1=0
bOpt2=0
[{489E377E-CD57-403F-BC37-F887468DDF94}-MessageBox-2]
Result=1

Any help would be appreciated. Thanks!!
Labels (1)
0 Kudos
(2) Replies
esiemiat
Level 9

When I get this error it is ussually becuase a different SdFinish dialog is getting used for that particular silent run than was used when you recorded the install. In your case, the recording process used the normal SdFinish dialog, but the computer that the silent install was run on may have used the SdFinishReboot dialog.

If you have access to the source code for the install, you can add a check to see if the install is running in record or silent mode, and force the install to use a specific finish dialog.
0 Kudos
rusgrafx
Level 4

esiemiat has a point. There's another thing you can about SdFinish dialogs. Put a conditional statement around both of them like this:

if (MODE = NORMALMODE) then
SdFinish...
endif;


Then reboot dialog will only appear in Normal mode. In Silent/Record modes those dialogs will not be shown at all, so they won't have to be listed in the Setup.iss
0 Kudos