Multiple Instances - Configure per-machine and per-user? - Advanced Installer Community

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!

daleq
Posts: 10
Joined: Tue Jul 21, 2009 5:30 pm

Multiple Instances - Configure per-machine and per-user?

Hi,

My understanding is that one can not have a single .msi to deliver true per-user and per-machine installs. Thus, we have two builds to make this distinction.

However, I'm now investigating Multiple Instances. I assume that since a transform is (apparently) applied before the .msi is invoked, then it may be possible to configure multiple instances to differentiate between per-user and per-machine installs. Is this correct?

When I run MsiDiff http://dennisbareis.com/index.htm, I see only a few changes between the generated per-user and per-machine .msi files. The pertinent part
seems to be SourceType.
e.g. $Summary "SourceType" Value="8"> ;;Previous value = 0

Can a transform be applied to modify the SourceType of the .msi?

Thanks,
Dale
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Multiple Instances - Configure per-machine and per-user?

Hello,

You can use the InstallTypeDlg to enable your installer to either install per-user or per-machine. Add this dialog from the Dialogs page, by right-clicking in the Install Sequence pane and selecting "Add Dialog".

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
daleq
Posts: 10
Joined: Tue Jul 21, 2009 5:30 pm

Re: Multiple Instances - Configure per-machine and per-user?

Thanks for your reply Gabriel,
GabrielBarbu wrote:You can use the InstallTypeDlg to enable your installer to either install per-user or per-machine. Add this dialog from the Dialogs page, by right-clicking in the Install Sequence pane and selecting "Add Dialog".
I assume that this dialog/method is only sufficient for setting the Application Folder and Application Shortcut Folder.

I should have been more clear in saying that I need a "real" per-user install has the no-elevate bit set in the summary information of the installer.

My experience with transforms is nearly zero, so I'm wondering if it is possible to create a transform that modifies the summary information of the MSI. Specifically, the no-elevate bit. I see Adding Summary Information to Customization Transform talks about this subject, but am looking for confirmation that this is the path that will likely lead to meeting my requirement.

Thanks,
Dale
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Multiple Instances - Configure per-machine and per-user?

Hi Dale,


Let me see if I understand correctly:
You want to use Multiple Instances instead of a multi-build project to enable your app to either install per-user without admin privileges, or per machine with admin privileges.

It appears the article you are describing covers this topic, however you are the first to seek such a behavior from an installer. Since this is the first time this is being done, I can not guarantee for the success of this.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
daleq
Posts: 10
Joined: Tue Jul 21, 2009 5:30 pm

Re: Multiple Instances - Configure per-machine and per-user?

Thanks Gabriel,

If I go ahead with this plan, I'll report back on my success or failure.

Of course, if you wanted to consider this a feature request for an enhancement to AI, I will not complain. :-)

Dale

Return to “Common Problems”