We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Humming Bird
Posts: 1
Joined: Sat May 12, 2007 9:29 pm

Getting location from registry to install to?

Well, I'm trying to figure out how to do this:

I have a small mod for Half-Life (steam).

I want to get the location of:

Code: Select all

REG QUERY "HKCU\software\valve\steam" /v ModInstallPath
So I can use that as my install location.

Well I need that, then I'll need to add "\msc" to it (for the mod folder).

my idea is:

Code: Select all

REG QUERY "HKCU\software\valve\steam" /v ModInstallPath \msc"


Note:
REG QUERY "HKCU\software\valve\steam" /v ModInstallPath
is supposed to give something like this - c:\program files\steam\steamapps\<steamusername>\half-life
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can use a registry search in the "Search" page ("New Search->Add Location->Registry") and then use the resulted property as "Application Folder" in the "Install Parameters" page.

The result of the search is stored by default in the "RESULT_PROPERTY". In the "Install Parameters" page type [RESULT_PROPERTY]\misc in the "Application Folder" field.

Let me know if you encounter any problems.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”