Page 1 of 1

WHERE and HOW do I set "ALLUSERS" in msicode?

Posted: Thu Sep 03, 2020 1:55 am
by ezG
I'm still relatively new to InstallAware. We use version 18.

How do I set the pre-defined variable "ALLUSERS" within msicode? I know how to do it from an msiexec commandline.
I've been looking at the help files and they tell me everything except WHERE I should set "ALLUSERS"

Is it as simple as

ALLUSERS=TRUE at the top of the file?

I need to make sure that this msi always does a 'Per-Machine" install.

Re: WHERE and HOW do I set "ALLUSERS" in msicode?

Posted: Thu Sep 03, 2020 10:21 am
by FrancescoT
Yes, it's just necessary to force the value of the ALLUSERS variable at the very beginning of your main setup script.
Doing in this way, any value eventually assigned from command line will be overridden by the script assignment.

Please consider that when the setup runs interactively (not in silent mode), during the setup wizard the user still has the possibility to switch the "ALLUSERS variable" to FALSE. By default, this may happen when the "startmenu dialog" gets displayed.
startmenu_dlg.png
startmenu_dlg.png (11.04 KiB) Viewed 3074 times

To prevent such possibility you may not display such dialog at all, or you may simply modify the dialog by hiding the two radio controls (from Dialog Editor, Set the Visible property of the controls to FALSE).

Re: WHERE and HOW do I set "ALLUSERS" in msicode?

Posted: Thu Sep 03, 2020 11:12 am
by ezG
Thank you. That helped.