User delete on uninstall/upgrade - Advanced Installer Community
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

User delete on uninstall/upgrade

Hi,

My installer creates a user. When I uninstall, or upgrade, the user is deleted (and recreated in the case of an upgrade). Is ther any way to stop the user being deleted?

Arthur
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: User delete on uninstall/upgrade

Hi Arthur,

In order to achieve that you can go in the “Table Editor” page and select the “InstallExecuteSequence” table. You can edit the “Condition” field of “AI_UninstallAccounts” action to something like:
((VersionNT >= 500) AND (REMOVE = "ALL")) AND ( NOT UPGRADINGPRODUCTCODE) .

Also, you should enable “Skip user creation if the user already exists” option from the “User Accounts” Properties.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”