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

Got a problem you cannot solve? Try here.
ezG
Posts: 8
Joined: Thu Sep 03, 2020 1:03 am

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

Postby ezG » Thu Sep 03, 2020 1:55 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

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

Postby FrancescoT » Thu Sep 03, 2020 10:21 am

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 2010 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).
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

ezG
Posts: 8
Joined: Thu Sep 03, 2020 1:03 am

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

Postby ezG » Thu Sep 03, 2020 11:12 am

Thank you. That helped.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 64 guests