We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

lzhao
Posts: 2
Joined: Mon May 06, 2019 5:37 am

How to get installation type?

I am working on creating a installer which will run a executable file after user press "Finish" button at Exit Dialog. I used "Launch Application" at "After Finishing Actions" to pass the argument to this executable. The argument should tell the installation type, current User or All users.
I've added InstallTypeDlg, and selected "Per-machine if user is administrator, per-user otherwise".
I used [ALLUSERS] as argument. But seems the value is always 2, whether it was installed for current user or all user.
How do I get the proper value to pass it to the executable? Thanks!
lzhao
Posts: 2
Joined: Mon May 06, 2019 5:37 am

Re: How to get installation type?

AI_InstallPerUser is the one to use.

Reference:
viewtopic.php?t=30746
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: How to get installation type?

Hello and welcome to Advanced Installer forums,

Thank you for your followup on this and for sharing your solution with us. I am sure this will be of help for further users facing a similar scenario.

I am also glad you got this working.

Just let me know if there is anything else I could help you with.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”