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!

jj3
Posts: 1
Joined: Tue Jun 05, 2012 4:43 pm

Multiple User Install and Per-User settings/folders

Hello,

I am building an installer for a somewhat complicated product/installation. I need to:
  • 1. Create a local user folder "My Documents"/MyApp
    2. Set a user environment variable that points to this directory.
For the user that installs the application (i.e. that runs the .msi file). This is quite simple in Advanced Installer (yeah!). However, in some cases we want to be able to have the admin install it "for everyone". This means that all users of our product would get the environment variable set for them (i.e. that points to their "My Documents"/MyApp) and we need to create this folder and its contents for them.

My understanding from reading the docs and this forum is that this can be accomplished by means of making the Application Shortuct an "Advertised Shortcut". An Advertised Shortcut, will then restart the msi file and perform the actions that need to be done for the user. Is my understanding correct?

I have, through the Files and Folders page, set the Application Shortcut to be an Advertised Shortcut. I have also added a Dialog to the installation that asks if the install should be performed for everyone or just the current user. Also, on the Instal Parameters page, I have set the Installation Type to: Per-machine if user is administrator, Per-user otherwise.

Where am I going wrong?

Thanks,

JJ
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Multiple User Install and Per-User settings/folders

Hello and welcome to Advanced Installer forums,

In order to achieve your behavior you should have a per-machine installation type. So, from "Dialogs" page remove the "InstallTypeDlg" dialog and from "Install Parameters" page set the installation type to "Per-machine only (fails if user is not administrator)".

Now you should create your application shortcut as an advertised shortcut and you should use the self healing feature to automatically install resources to per user location.

If you have any questions let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”