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!

devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Upgrade creates a new user profile

Hello together,

I got the following setup:
- "Install new version first and then uninstall old version" is selected
- Installer is creating a new user (configured under Users and Groups)
- "Skip user creation if the user already exists" is selected
- The user is member of the group "Administrators"

Scenario:
1. Install version a
2. Login with created user
3. Upgrade to version b
4. Login with created user
5. Upgrade to version c
6. Login with created user
x. ...

For each upgrade to a new version under the user profiles directory a new folder is created. The name of the folder contains username and a incrementing number at the end.

Please tell me if I did miss something or there is another solution.

Thank you,
/dev/null
devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Re: Upgrade creates a new user profile

Additional info:
I can reproduce the issue by:

1. Call "net user /add foo"
2. Login with foo
3. Logout with foo
4. Call "net user /delete foo"
5. Login with foo

The user profiles of foo will not be deleted by this command and accumulate.

Does the advanced installer use this command?

Thank you,
/dev/null
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade creates a new user profile

Hi and welcome to Advanced Installer forums.

I'm afraid that I do not fully understand your scenario. Is the same user created every time you install your package even if it already exists on the machine?

Advanced Installer does not use the "net user /add foo" command to create a new user, it uses a Windows API, but it is possible that the command you mentioned to use the same Windows API.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Re: Upgrade creates a new user profile

Hi,

I used the function of advanced installer to add the user.
I also checked the option "skip if exists".

Everytime I install an upgrade of my product, it will create a new folder under "C:\Users\" named "<username>.<number>"

Thank you & best regards,
/dev/null
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade creates a new user profile

Hi,

Can you please send me the complete path to a folder that it creates, the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Re: Upgrade creates a new user profile

I will try to create a example project because I cannot give you the real files.

Attached is a example project:
1. Build with version 1.0.0
2. Build with version 2.0.0
3. Execute xyz_1.0.0.exe
4. Relogin to system using "Mr.Robot:secret"
5. Execute xyz_2.0.0.exe
6. Uninstall xyz
7. Relogin to previous user ... crashes my users

You also can see "unknown" user profiles if you are:
right clicking computer -> properties -> advanced system settings -> User profiles (settings)

This profiles are created and left there by advanced installer during upgrade/uninstall.
Attachments
EvilCorp.aip
(20.65 KiB) Downloaded 554 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade creates a new user profile

Hi,

I tested the scenario and indeed, I reproduce the behavior. The user profile's folder is not removed when the user account is removed. A fix for this is already on our TODO list and it will be available in a future version of Advanced Installer. Thank you for the feedback.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Re: Upgrade creates a new user profile

Hi,

we are planning to extend three enterprise licenses as soon a new advanced installer release contains this bugfix.
Can you tell us, in which release this bug will be fixed?

Thank you,
/dev/null
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade creates a new user profile

Hi,

I just increased its priority and the development team will try to implement it in a soon release. I will notify you when the fix will be available.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Re: Upgrade creates a new user profile

Hi, anything new so far?

Bye,
/dev/null
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade creates a new user profile

Hi,

We are already working on this fix and it will be available soon. We will update this thread when the fix will be available.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrade creates a new user profile

Hello,

This was fixed in version 13.5 of Advanced Installer released on December 14th, 2016.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Re: Upgrade creates a new user profile

Hi,

just created a project with the new version of AdvancedInstaller (13.5) and got two issues:

1. On the prerequisites page in the column "Required" the min/max version doesn't show up.

2. During an upgrade of a product there is a problem with shortcuts.
A file shortcut gets removed (silently) if advanced installer doesn't find the file (e.g. because files get synced during build). According to this issue we changed it from file to internet shortcut so that it stays there.
Now Microsofts Cortana won't find internet shortcuts but file shortcuts. According to this issue we changed it back from internet to file shortcut again and make sure we always have a file in place.
If we are upgrading the product from a version with internet shortcut to a version with file shortcut the shortcut will not be created (first installations work perfectly).

Note: The path of the shortcut changes with the product version because the installation path includes the product version.

Thank you,
/dev/null
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade creates a new user profile

Hi,
1. On the prerequisites page in the column "Required" the min/max version doesn't show up.
Indeed, this seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.
2. During an upgrade of a product there is a problem with shortcuts.
A file shortcut gets removed (silently) if advanced installer doesn't find the file (e.g. because files get synced during build). According to this issue we changed it from file to internet shortcut so that it stays there.
Now Microsofts Cortana won't find internet shortcuts but file shortcuts. According to this issue we changed it back from internet to file shortcut again and make sure we always have a file in place.
If we are upgrading the product from a version with internet shortcut to a version with file shortcut the shortcut will not be created (first installations work perfectly).
If you want the shortcut not to be removed from the project if its related file is not found, you can try to create a "Shortcut To -> External File" instead.

I'm not sure why the shortcut is not created during the upgrade. Can you reproduce the problem on multiple clean machines? If so, can you try to change the GUID number of the component related to the shortcut and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
devnull
Posts: 9
Joined: Tue Aug 16, 2016 2:47 pm

Re: Upgrade creates a new user profile

Just changed it from "Installed" to "External" file.

Did not mess with the GUIDs yet but can report another issue:
Length of the path for external files is limited, so I can't type it in.
Temporary solution: Completed the path directly in the AIP .xml

Let's see if it works in our next release.

Thank you,
/dev/null

Return to “Building Installers”