1 out of 1 rated this helpful - Rate this topic

ARPINSTALLLOCATION property

Applies to: desktop apps only

The ARPINSTALLLOCATION property is the full path to the application's primary folder.

Remarks

Typically needs to be set by a custom action.

Requirements

Version

Windows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.

See also

Properties

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Wix - Save or Load ARPINSTALLLOCATION
Saving ARPINSTALLLOCATION Assuming a Directory with Id='INSTALLLOCATION'<br/> <SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLLOCATION]" After="InstallValidate" Sequence="execute">NOT Installed</SetProperty> Loading ARPINSTALLLOCATION (in the case of an upgrade) Assuming an UpgradeVersion element with Property='OLD_VERSION_FOUND' <Property Id='INSTALLLOCATION'> <RegistrySearch Id='FindInstallLocation' Root='HKLM' Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLD_VERSION_FOUND]' Name='InstallLocation' Type='directory'/> </Property>
ARPINSTALLLOCATION and how to set it with the WiX toolset.
Blog entry providing information how to use ARPINSTALLLOCATION with the WiX toolset: http://robmensching.com/blog/posts/2011/1/14/ARPINSTALLLOCATION-and-how-to-set-it-with-the-WiX-toolset
InstallLocation property returns empty string
To get the correct value from the InstallLocation property;


- Open your msi in Orca from Windows Installer SDK 4.5
- Edit the following row in CustomAction table:

(Action) (Type) (Source) (Target)


SetARPINSTALLLOCATIONProperty 51 ARPINSTALLLOCATION [INSTALLLOCATION]

-Save the msi.


ARPINSTALLLOCATION appears to be available to set INSTALLDIR

I have found that, if I have a Component with a file at ARPINSTALLLOCATION, then msiexec actually sets INSTALLDIR to that value. So, I always includes a file, typically the license file, at that base location, so I have INSTALLDIR automagically set, since I sometimes need it for uninstall or reinstall processes.