Hello Shiva,
We don't have predefined support for this. However you can have your own custom action which implement this scenario like the
MoveFileEx function with the
MOVEFILE_DELAY_UNTIL_REBOOT flag specified.
In order to launch you .DLL you can go in the
“Custom Actions” page and add a predefined
Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.
You can use a tool which already has implemented this functionality, like the one from
Windows Sysinternals -
MoveFile tool but you should take a look first on their
license agreement.
If you are using an .EXE which open the window command line you can take a look on the
Hide command window article which may be useful to you.
If you have other questions, please let us know.
Best regards,
Dan