Multiple installations and registry keys - 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!

bvelke
Posts: 67
Joined: Fri Jun 10, 2011 6:36 am

Multiple installations and registry keys

I want my users to be able to install my software multiple times, one for each logged-in user and also once for All-Users.

Under Install Parameters, Installation Type is set to "Per-machine if user is administrator, per user otherwise".

Under Dialogs, I've added InstallTypeDlg so the user is prompted for installation type (Only for me/Everybody).

I have five values under "Current User/Local Machine" /Software/[Manufacturer]/[ProductName]".

For "Everybody" installations, they are put into HKLM.

For "Only for me" installations, they are also put into HKLM. Shouldn't they be in HKEY_CURRENT_USER?

Also, an attempt to install again (identical installer) generates the error message "Another version of this software is already installed. Installation of this version cannot continue...." But that comes up immediately after the installer is started (before I even get to InstallTypeDlg).

What am I doing wrong?

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multiple installations and registry keys

Hi,
I want my users to be able to install my software multiple times, one for each logged-in user and also once for All-Users.
This seems like an odd requirement. Can you please give me more details about it? Why should each user be able to install the same product if it's already installed for all users?
For "Everybody" installations, they are put into HKLM.
For "Only for me" installations, they are also put into HKLM. Shouldn't they be in HKEY_CURRENT_USER?
I'm not sure why this happens. Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it? Also, please attach a verbose log of the installation.
Also, an attempt to install again (identical installer) generates the error message "Another version of this software is already installed. Installation of this version cannot continue...." But that comes up immediately after the installer is started (before I even get to InstallTypeDlg).
This is the normal behavior. Products are usually installed per-user or per-machine, not both. Advanced Installer does offer multiple instances installations, but they are not designed for this type of deployment. They are intended for applications similar to SQL Server, which can have multiple instances that operate independently.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bvelke
Posts: 67
Joined: Fri Jun 10, 2011 6:36 am

Re: Multiple installations and registry keys

cosmin wrote:Hi,
I want my users to be able to install my software multiple times, one for each logged-in user and also once for All-Users.
This seems like an odd requirement. Can you please give me more details about it? Why should each user be able to install the same product if it's already installed for all users?
Real users don't need to install as "All Users" and also as a single user but my beta testers do. The have a production installation and a testing installation and logging in as a different user causes all kinds of other problems (access to other programs, email, etc.) It is not a showstopper but I'd like to avoid having to explain that upgrading our installer made them lose that feature.
For "Everybody" installations, they are put into HKLM.
For "Only for me" installations, they are also put into HKLM. Shouldn't they be in HKEY_CURRENT_USER?
[/quote]
I'm not sure why this happens. Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it? Also, please attach a verbose log of the installation.

OK, will do.
Also, an attempt to install again (identical installer) generates the error message "Another version of this software is already installed. Installation of this version cannot continue...." But that comes up immediately after the installer is started (before I even get to InstallTypeDlg).
This is the normal behavior. Products are usually installed per-user or per-machine, not both. Advanced Installer does offer multiple instances installations, but they are not designed for this type of deployment. They are intended for applications similar to SQL Server, which can have multiple instances that operate independently.[/quote]

Can I use it for my purposes?

Thanks.
bvelke
Posts: 67
Joined: Fri Jun 10, 2011 6:36 am

Re: Multiple installations and registry keys

Please acknowledge receipt of my email with the .AIP and installation log.

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multiple installations and registry keys

Hi,
The have a production installation and a testing installation and logging in as a different user causes all kinds of other problems (access to other programs, email, etc.) It is not a showstopper but I'd like to avoid having to explain that upgrading our installer made them lose that feature.
This looks more like a side-by-side installation.
Can I use it for my purposes?
Not really. Multiple instances are for the same package. You seem to want to install different versions at the same time on the same machine. This is side-by-side installation.
Please acknowledge receipt of my email with the .AIP and installation log.
Currently I don't have access to the email server, but we will reply as soon as possible.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bvelke
Posts: 67
Joined: Fri Jun 10, 2011 6:36 am

Re: Multiple installations and registry keys

Thanks for the email.
Can I use it for my purposes?
Not really. Multiple instances are for the same package. You seem to want to install different versions at the same time on the same machine. This is side-by-side installation.
OK, I selected "Allow side by side installs of different product versions" on the Upgrades page but changing the product version generates a warning that it will prevent patches. I can see why that would be but once the beta testing is done, I need to make a patch from the last public release to the new public release. Is there a way to make a note of the original product code and restore it when I'm ready to patch it?

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multiple installations and registry keys

Hi,

If don't use a subversion system for your projects, you can get the original Product Code from the old installer:
- if it's included in an EXE file extract the MSI
- open the MSI with Orca
- in Property table find the ProductCode property
- copy its value
- open your Advanced Installer project
- use "Project -> Options" menu and go to Project IDs tab
- update the ProductCode

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bvelke
Posts: 67
Joined: Fri Jun 10, 2011 6:36 am

Re: Multiple installations and registry keys

OK, I think this solves the issue but I want to make sure that I understand this reference:
cosmin wrote: If don't use a subversion system for your projects
As I understand it:

1) I release v8.00.0000 to my customers.
2) Then I update the product version to 8.00.0001, rebuild, and send it to my beta testers who will be able to install a second copy for testing purposes.
3) Increment and repeat step 2 as needed.
4) Then I follow the procedure that you described above (restoring the product code from step 1), update the product version to 8.01.0000, and make a patch.

Have I got that right?

Thanks.

-Bob
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multiple installations and registry keys

Hi Bob,

Yes, this is correct. Please note that side-by-side installation needs to enabled for all versions, including 8.00.0000. In this case you may want to add the "UpgradeDlg" dialog in Dialogs page. If you decide to use it, you can also try the Conditionally show the "UpgradeDlg" dialog how-to.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”