So the pre-defined variable
$EXEFILE$ contains the full path of the currently running setup binary.
There's a full list of pre-defined variables here:
http://www.installaware.com/mh52/deskto ... iables.htmAnd pre-defined compiler variables here:
http://www.installaware.com/mh52/deskto ... iables.htmMost of them are equally available with Install
Aware Multi Platform.
They are very helpful to you in building your setups.
You would therefore essentially call your own setup again, with
Run Program As, once you have determined that elevation is required.
Make sure to wait until the re-invoked setup returns, so as to avoid deleting setup files while the invokee is still running but the non-elevated instance has quit.
Or, you could use
$SFXPATH$, etc.
You may also want to modify your setup wizard flow to eliminate prompts for duplicate data that may have already been provided (and thus, you'd want to pass any captured data to your new instance on the command line, or store them in a configuration file, etc.)
I hope these ideas help point you in the right direction!