I have a msi which is created from an IS Installscript msi project , as the product requires elevated permissions it should be running as administrator . Everything is fine , but now the product is getting installed on Admins home rather than the users home directory.
when i am using GetEnvVar(USERPROFILE,svUserProfile) , i am getting admins home directory rather than the current logged in user directory.
Any help is appreciated in solving this.