Set installation path according to user privileges
I'm creating under visual studio 2019 with installshield 2021 an installer for my customer software.
The MSi can install the software per user or per machine.
I'd like to configure the installation path based on the user privileges :
- If the setup was lunahced in administrator, then it should be be in the program files folder.
- Else, it should be in the user appdata folder.
How can I achieve this please ? I tried many things but nothing is working.
Thank you very much.