Hi,
You can do this using an installer class.
public partial class Installer1 : Installer
....
public override void Commit(IDictionary savedState)
{
Registry.LocalMachine.DeleteSubKey(@"HKEY_LOCAL_MACHINE\Software\Oracle\NLS_LANG");
base.Commit(savedState);
}
You then need to use your installer class in the setup project.
In Solution Explorer, select the "Custom action" icon (the one with a cog) and add the primary output of your installer class to the commit node.
Valery.
http://msdn.microsoft.com/en-us/library/d9k65z2d(v=VS.100).aspx[
^]