The nuclear envelope act as a barrier that prevent both DNA and RNA viruses from entering the nucleus . Some viruses require access to proteins inside the nucleus in order to replicate and / or assemble . DNA viruses , such as herpesvirus replicate and assemble in the cell nucleus , and exit by budding through the inner nuclear membrane . This process is accompanied by disassembly of the lamina on the nuclear face of the inner membrane .