I have try to install jre through in my exe referred this link
Function installjre
SetOutPath '$TEMP'
SetOverwrite on
File lib\jre.exe
Exec $TEMP\jre.exe $0
FunctionEnd
I have used above and Its working very well.
problem:
- How to Install jre in background process? Is possible to install jre as silent mode?
- by default jre will take
c:\program files\java\jre
and i need to change this path to$INSTDir\jre
while running silent mode
I have tried following command it seems to be does not work
Exec /silent $TEMP\jre.exe $0
How to solve above two problems?