How to get the user's installation path

Hello Andrea,

that is fairly easy.

When the OEM installer has run its course, there is a registry key called Location where the install path of the OEM application is saved.

I will demonstrate this with our AutoSTAGE application with AutoCAD OEM 2023 German (disclaimer: I am the lead developer for AutoSTAGE).

Look for a key that looks like this:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\AutoSTAGE\AutoSTAGE\R27\aust-6101:407

There you will find a string called Location where the full path to the install folder is stored.

When you use WiX (Windows Installer Xml), you can get the path as property with something like this:

			<Property Id="AUST2023_UPDATE">
				<RegistrySearch   Id="AUST2023_UPDATE_REG"
								  Root="HKLM"
								  Key="Software\AutoSTAGE\AutoSTAGE\R27\AUST-6101:407"
								  Name="location"
								  Type="raw" />

Obviously, this only works after the OEM installer is done with its magic. You would have to call your installer after the OEM msi has been installed.

This will not work, because it injects the your installer before the main OEM msi installer is called.

There is surely a way to add the call to your installer after the main OEM msi is done, but I would have to think about it more deeply.

1 Like