We package few other thirdparty softwares along with our installer,and also install them during the installation of our product. We install them in silent mode and capture their exit codes, so sotimes, they get installed successfully and give exitcode as "3010" which is reboot required. So, in those cases we want to show reboot page at the last but want to give a custom message.
what is the best way to show the custom message on the finish page?
[Messages]
#if FileExists("c:\RebootFile.txt")==0
FinishedRestartLabel=To complete the installation of ConditionalMessageOnWizard, Setup must restart your computer. Would you like to restart now?
#else
FinishedRestartLabel=Reboot Required
#endif
I am using the above code, but i am unable to use the dynamic paths like {sd} or {tmp} for fileexists function.
Can anyone help?
{tmp}
constant value will be useless at preprocessing time... – TLamaFinishedRestartLabel
text depending on if that file exists at build time of your setup, not at runtime on client's machine. Could you edit your question and elaboate on your requirement, please ? – TLama