<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Reference%2FSetRegView</id>
	<title>Reference/SetRegView - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Reference%2FSetRegView"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/SetRegView&amp;action=history"/>
	<updated>2026-08-20T09:44:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/SetRegView&amp;diff=21401&amp;oldid=prev</id>
		<title>Jan: Created page with &quot;=SetRegView=   &lt;ins&gt;32&lt;/ins&gt;|64|lastused  Sets the registry view affected by registry commands. On Windows x64 there are two views. One for 32-bit applications and one for x64 ap...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/SetRegView&amp;diff=21401&amp;oldid=prev"/>
		<updated>2011-11-28T09:00:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=SetRegView=   &amp;lt;ins&amp;gt;32&amp;lt;/ins&amp;gt;|64|lastused  Sets the registry view affected by registry commands. On Windows x64 there are two views. One for 32-bit applications and one for x64 ap...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=SetRegView=&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ins&amp;gt;32&amp;lt;/ins&amp;gt;|64|lastused&lt;br /&gt;
&lt;br /&gt;
Sets the registry view affected by registry commands. On Windows x64 there are two views. One for 32-bit applications and one for x64 applications. By default, 32-bit applications running on x64 systems under WOW64 have access only to the 32-bit view. Using SetRegView 64 allows the installer to access keys in the x64 view of the registry.&lt;br /&gt;
&lt;br /&gt;
Affects [[Reference/DeleteRegKey|DeleteRegKey]], [[Reference/DeleteRegValue|DeleteRegValue]], [[Reference/EnumRegKey|EnumRegKey]], [[Reference/EnumRegValue|EnumRegValue]], [[Reference/ReadRegDWORD|ReadRegDWORD]], [[Reference/ReadRegStr|ReadRegStr]], [[Reference/WriteRegBin|WriteRegBin]], [[Reference/WriteRegDWORD|WriteRegDWORD]], [[Reference/WriteRegStr|WriteRegStr]] and [[Reference/WriteRegExpandStr|WriteRegExpandStr]].&lt;br /&gt;
&lt;br /&gt;
Does not affect [[Reference/InstallDirRegKey|InstallDirRegKey]]. Instead, the registry can be read using [[Reference/ReadRegStr|ReadRegStr]] in [[Reference/.onInit|.onInit]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;SetRegView 32&lt;br /&gt;
ReadRegStr $0 HKLM Software\Microsoft\Windows\CurrentVersion ProgramFilesDir&lt;br /&gt;
DetailPrint $0 # prints C:\Program Files (x86)&lt;br /&gt;
SetRegView 64&lt;br /&gt;
ReadRegStr $0 HKLM Software\Microsoft\Windows\CurrentVersion ProgramFilesDir&lt;br /&gt;
DetailPrint $0 # prints C:\Program Files&lt;br /&gt;
Function .onInit&lt;br /&gt;
  SetRegView 64&lt;br /&gt;
  ReadRegStr $INSTDIR HKLM Software\NSIS &amp;quot;&amp;quot;&lt;br /&gt;
  SetRegView 32&lt;br /&gt;
FunctionEnd&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
</feed>