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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

InstallTypeDialog on MSI problem

Hello,

So i have an issue regarding installing for All Users and Current User the path doesn't seem to change no matter what..

I Started by creating an Msi Project.
In install parameters i use per machine if user is admin, per user otherwise.

In Application Folder - i changed the default value from [AI_UserProgramFiles][Manufacturer]\[ProductName] to [LocalAppDataFolder][ProductName].

In Users Interface - Dialogs - I added InstallTypeDlg and SetupTypeDlg. (there both with their default values).

So here is what i was expecting:

There are these 2 paths: C:\Users\Admin\AppData\Local\[ProductName]
C:\Users\Diego\AppData\Local\[ProductName] (where Diego is the current User with no admin rights);

If i should All Users in InstallTypeDlg the path in SetupTypeDlg should be: C:\Users\Admin\AppData\Local\[ProductName] (of course if user is admin the path will be the same in either choises)

Otherwise it should always point to current user: C:\Users\[CurrentUser]\AppData\Local\[ProductName].

Is there anyway to do this?


Thank You very Much.


Sincerely,
Diego.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: InstallTypeDialog on MSI problem

Hi Diego,

In order to achieve this you can try to use a custom property in the "Application folder" field of the "Install Parameters" page and set that property to the appropriate path based on the "AI_InstallPerUser" property that is "1" when Current User is chosen and "0" when All Users is chosen.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”