skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

stop deletion of users/group on uninstall

Hi there,
I am using Advanced Installer Enterprise 8.2.

I have a project which includes the creation of a user and group as part of the install.
I have a property to store the password (lets call it myProperty) and it is set to ".". I have a dialog to set this.

The install condition for the new user is set to (Not Installed) and myProperty <> ".".

Everything works great - I get the new account and group created when running the MSI. The problem I have is that them to persist after I uninstall the MSI. So now when I uninstall the MSI both the group and the user gets deleted.

I couldn't find any flags in Advanced Installer to control this... I was looking for something similar to what you can do with registry entries etc...

Is it possible to not remove the user and group on uninstall?

As always, thanks heaps!

Jeff
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: stop deletion of users/group on uninstall

Hi Jeff,

To accomplish this in an Enterprise project, you can go to the Table Editor page and navigate to the InstallExecuteSequence table. Find AI_UninstallAccounts and AI_UninstallGroups Action entries and try to modify their Condition column from:

Code: Select all

(VersionNT >= 500) AND (REMOVE = "ALL")
to:

Code: Select all

1 = 2
Save and rebuild your project. This should ensure the uninstall actions for the user and groups never get executed.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”