All Users Installation Issue - Advanced Installer Community
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

All Users Installation Issue

Hello,

So i have a complex problem with the installation types for AllUsers and CurrentUser.

I'm gonna try to explain my project and issue in the simplest manner.



So my project has the option install per-machine if user is admin, per-user if not.

As for dialogs i currently have a welcome page, followed by a UserTypePage.

This UserTypePage consist of 3 radio buttons (Beginner, Intermediate, Advanced) if user is Beginner it is Supposed to run as if it is an Install for Current User Installation. Basically the a cliente clicks Beginner Presses Next and goes to
the VerifyReadyDlg to start installing, while Intermediate and Advanced go through the InstallTypeDlg abd SetupTypeDlg.

In the Beginner case if i press Install Button and during install it will always ask me "if allow the program to be installed", this is not what we want.

If i go through the Intermediate or Advanced case and select in the InstallTypeDlg the "Only for Me" Option when i reach the VerifyReadyDlg and press Install it runs as expected the installation neves ask me if i want to install the program it just installs.

And (in the Intermediate or Advanced case) if i select in the InstallTypeDlg the "Everybody" Option then during the install i get asked if i "wish to install this program".


I already tried changing multiple properties like:

If UserType = "0" (which means its a Beginner client) - setProperty - AI_InstallPerUser = "1", ALLUSERS = "0", MSIINSTALLPERUSER = "1".


It didn't work.... what am i missing?

I already consulted this page: http://www.advancedinstaller.com/user-g ... users.html



If did not understand my Issue very well please say so.


Thank You Very Much for Your Assistance.


Sincerely,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: All Users Installation Issue

Hi Diego,

Please note that some properties are set and changed accordingly when you perform an installation Per-User or Per-Machine.

Take a look on the Installation Context article which may be useful to you.

All these properties and redirections are set automatically when you use our predefined InstallTypeDlg. On the "InstallTypeDlg" the "AI_InstallPerUser" property is set with the following values:
  • AI_InstallPerUser = 1 (when a Per-User installation is made)
  • AI_InstallPerUser = 0 (when a Per-Machine installation is maded)
Please note that on the "Next >" button from the "InstallTypeDlg" there is also executed the "AI_AuthorSinglePackage" custom action as a "published event". (make sure you have enabled the "Show all events" option from the bottom).

Keep in mind that you also need to execute this custom action after you set accordingly the "AI_InstallPerUser" property.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: All Users Installation Issue

Hello Dan,

Thanks for your help again.


I finally managed to make it work out!

I on the next button of my UserType Dlg i set the properties: ALLUSERS="2" and MSIINSTALLPERUSER="1" and it worked.



Thank You.

Sincerely,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: All Users Installation Issue

You're always welcome Diego,

I'm glad you got this working. If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”