aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Simultaneous per machine and per user instances

Hello AI team.

Recently we have decided to provide a possibility to install our software per-user as well.

We noticed a problem in next situation (lets say Version 1 has only per-machine option. Version 2 - both per-user and per-machine).
1. V1 was installed per-machine into "c:\saM".
2. On the same machine the user (not admin) installs the V2 per-user into "c:\saU".
He sees in "Programs and Features" 2 instances of the software, which is totally correct.

The problem starts when he wants to remove one of the instances.
If he removes his per-user instance (from "Programs and Features"), the installer asks for admin rights and i see in UAC details, that the APPDIR equals "c:\saM" (!). unfortunately, i cannot printscreen the uac details.
After the deinstallation (does not matter, was it per-machine or per-user) the shortcut still remains on the desktop and the program - in "Programs and Features" (and it cannot be removed from there -> an error. see screenshot).

In the result, the instance, that the user had tried to deinstall was not completely removed.
How can we solve this?
+why by per-user deinstallation the installer thinks the APPDIR equals per-machine APPDIR and asks for admin rights?

I'm sending over email
-both (V1 & V2) setups to test
-both installation logs
-2 deinstallation logs (from 1 deinstallation got 2 of them)
-the aip file
Attachments
ProgAndFeatError.PNG
ProgAndFeatError.PNG (44.83 KiB) Viewed 3614 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Simultaneous per machine and per user instances

Hello Aleksandr,

Please keep in mind that you have enabled the "Automatically upgrade older product versions" option from "Upgrades" page. When this option is enabled you should make sure that both versions (target and upgraded) of your product use the same installation type. This is because a per-user installation cannot upgrade a per-machine installation and vice versa. However, if you still want to force an upgrade regardless the installation type then you can add the "Uninstall previous versions" custom action to your installation project.

If you want to install side by side different versions of your product, then you should enable the "Allow side by side installs of different product versions" option from "Upgrades" page.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Re: Simultaneous per machine and per user instances

we have misunderstood this part:
"a per-user installation CANNOT upgrade a per-machine installation and vice versa"

for use it sounds like
"a per-user installation WILL NOT upgrade a per-machine installation and vice versa"

well, okay..will find a way to solve this
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Simultaneous per machine and per user instances

Hello Aleksandr,
for use it sounds like
"a per-user installation WILL NOT upgrade a per-machine installation and vice versa"
Yes, this is correct.

If you have any question just let us know.

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

Return to “Common Problems”