I am using two active setup's during installation and uninstallation. the reason is i have to place files in %appdata% during installation and delete them during uninstallation. i am installing it thourgh deployment tool using admin credentials. it works well duing installation ->uninstallation. If i reinstall the application and login to standard account my install active setup does not run. it runs uninstall active setup and all my files in appdata are deleted. the active setups are conditioned properly with Not installed and remove~=all. i am not able to figure out why during reinstalltion wrong active setup is executed. in HKLM key i see both listed.

any help would be much appriciated.

3 Comments   [ - ] Hide Comments


  • data cannot be left on the machine and it has to be deleted during uninstall. i am creating templates for office 2010 and 2013. other than appdata there is no other place where i can leave data which is compatible for both.
  • Do you mean custom actions and not active setup?? If you log in as a std user after 're installing' the Activesetup key would already be in that users profile, hence why it wont work 'again'
  • i have written custom actions separatively for install and uninstall. i had increment the active setup to make it work.. thankyou for al your support
Please log in to comment

Answer this question or Comment on this question for clarity



Think!!! "If I reinstall the application" versus "conditioned properly with 'NOT Installed'"...

As usual, logging the scenarios would've pointed you in the right direction.

Answered 04/15/2014 by: VBScab
Red Belt

Please log in to comment

You will have to write a custom action which will delete the uninstall ActiveSetup during reinstall/install if it exists.

Answered 04/21/2014 by: jagadeish
Red Belt

Please log in to comment

Remove the uninstall active setup.  Leave the files in %appdata% unless they contain sensitive data – and if they do, they shouldn’t be stored locally in the first place.

Answered 04/14/2014 by: vjaneczko
Eighth Degree Black Belt

Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja