Hello!
I have a problem with removing local user when uninstalling
application. I create this user during installation with:
...
<component id="user-content-AdminAccountComp" permanent="no" guid="8756fe7d-1555-4e92-aba3-e4b5dab1cedb">
<user id="user-content-AdminAccount" domain="<span>[ComputerName]</span>" name="<span>[ADMINNAME]</span>" password="<span>[ADMINPASSWORD]</span>" createuser="yes" passwordneverexpires="yes" removeonuninstall="yes" failifexists="no" updateifexists="yes">
<groupref id="user-content-IisWpgGroup">
</groupref></user>
</component>
...
Uninstall of application fails, because I get error:
...
RemoveUser: Error 0x80070103: failed to read domain
from custom action data
Action ended 13:13:45: InstallFinalize. Return value 3.
Action ended 13:13:45: INSTALL. Return value 3.
...
How can I remove user while uninstalling application?
What am I doing wrong?
Derek Cicerone wrote:
You have to persist the property value from install to
uninstall if it's not
directly authored in the msi file by saving it to a
registry value or some
other persistent location. I believe this may have
already been discussed
on this alias, so you might check the archives.
Logged In: YES
user_id=991639
Originator: NO
Derek provided the answer. You need to persist the data for uninstall because the Windows Installer does not do it for you.