Page 1 of 1

Distinguish whether installer has been launched from ARP

Posted: Thu Nov 18, 2010 11:23 am
by pokr
Hi,

Is there a way to distinguish whether the installer has been launched from the Control Panel Add/Remove Programs applet or from another place (the source CD, for instance)? I would like to detect that in order to allow or disable some repair/reinstall functionality...

Txs,

pokr

Re: Distinguish whether installer has been launched from ARP

Posted: Wed Nov 24, 2010 5:36 pm
by mills
You can check the value of EXEDIR.

If the exe is in the temp/cached location, then it's being run from ARP.