cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
angshuman
Level 3

Silent Install - Response is -3

Hello,
A section (as below) gets written to the silent install .iss response file by installshield while doing setup in record mode [setup.exe -r]. The section is -

[File Transfer]
OverwrittenReadOnly=NoToAll


If I remove this section, then the silent installation works fine.
Any ideas ?
Labels (1)
0 Kudos
(5) Replies
angshuman
Level 3

angshuman wrote:
Hello,
A section (as below) gets written to the silent install .iss response file by installshield while doing setup in record mode [setup.exe -r]. The section is -

[File Transfer]
OverwrittenReadOnly=NoToAll


If I remove this section, then the silent installation works fine.
Any ideas ?


Can somebody please respond ?
0 Kudos
rrinblue22
Level 9

check if you have OnFileReadOnly function in your script....
0 Kudos
angshuman
Level 3

Yes, I do have a function like this -

function OnFileReadOnly(File)

begin
Log (-1,__FILE__,__LINE__,"Event OnReadOnlyFile : Readonly File detected : " + File);
return SdExceptions(READONLY, File);
end;


Thanks, I have changed the function definition as below. Hope this is fine -

function OnFileReadOnly(File)

begin
Log (-1,__FILE__,__LINE__,"Event OnReadOnlyFile : Readonly File detected : " + File);
if(MODE = SILENTMODE || MODE = RECORDMODE) then
return ERR_YES;
else
return SdExceptions(READONLY, File);
endif;
end;
0 Kudos
rrinblue22
Level 9

yes, I think so that should be fine .....
do you still get the same error now.....
0 Kudos
angshuman
Level 3

rrinblue22 wrote:
yes, I think so that should be fine .....
do you still get the same error now.....


No, I do not get the error now. Thank you for pointing out this function.
0 Kudos