Install same version on the same machine - 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!

chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Install same version on the same machine

I am using Advanced Installer 6.3 and ran into an issue.

My installation package includes an registration entry which is different every time the user downloads the package from our web site. The application uses this registry key to set up the security. Apparently it is required that each user will have its own security settings.

Here comes the issue when two user account tried to install the same package on the same machine. The 2nd user will get the error message said the package already exists on the machine and won't be able to continue the installation to set up the registration key.

Is there a way to get around? I saw some package allow the user to overwrite the same package. Is there a similar way in Advanced Installer?

Thanks,

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

Re: Install same version on the same machine

Hi,

I'm afraid that Windows Installer does not support multiple instances of the same installation package. Therefore, a MSI installation package can be installed only once on a machine. However, you can perform a per-machine installation in order to install the application for all user accounts. This way the package will have only one instance and all the users will be able to use the application.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Re: Install same version on the same machine

That doesn't solve my problem. I need to provide different user different security settings thru registry key. The registration key is written into MSI package when the user is downloading the MSI package. Any idea how can I provide the different registration key to different account on the same machine? Please note that different user might install the package at the different time.

Thanks,

Chen
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Install same version on the same machine

Hi,
My installation package includes an registration entry which is different every time the user downloads the package from our web site. The 2nd user will get the error message said the package already exists on the machine and won't be able to continue the installation to set up the registration key. The registration key is written into MSI package when the user is downloading the MSI package.
If I understand correctly, you generated another MSI file for each user download. Note that this is not a good approach. With each build a new "Pacage Code" is generated witch uniquely identify a MSI package. Running this package on a machine with with the old package installed will lead to that error message.

So if your application is to run per-user then set the "Installation Type" ("Install Parameters" page) to per-user only. In the "Registry" page make sure you create the key under "HKEY_CURRENT_USER" root.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Re: Install same version on the same machine

First thanks for the reply.

We don't rebuild the new MSI package for every user. We put the MSI package on a linux server. When the user requests to download the package, we assign a security registration key which is generated by the server and inserted into the MSI package by replacing the "place holder" string that was put into MSI package during build time. Therefore the "individual" packages are the same except that security registration key. I think it is an "unconventional" way to do such a thing. If there are other better approach, I am open to suggestions.

Another thought is to split the current package into two MSI package. One contains the security registration key and the other contains the application. The 1st one will install the security key and the application package if it is not already installed. I don't know whether it is possible in MSI.

Regards,

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

Re: Install same version on the same machine

Hi,
Therefore the "individual" packages are the same except that security registration key. I think it is an "unconventional" way to do such a thing.
This is not unconventional, however Windows Installer does not support multiple instances of the same installation package. Therefore, if you want to distribute the same package with different keys for two different user accounts on the same machine, the recommended approaches are:
- make sure that the package is per-user in order to install the application only for the current user (one registry key for each user account)
- make sure that the package is per-machine in order to install the application for all users (one registry key for all user accounts)

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

Return to “Common Problems”