Get And Use Registry Value In a command line - Advanced Installer Community

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!

lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Get And Use Registry Value In a command line

Hi,
I want to run a command line that one of the parameters in teh command line is a registry value.
How can I perform that?

For Example:
I want to run:

Code: Select all

start c:\Program Files\MyApp\%Registry Value%\Test.inf
While the registry value is taken from

Code: Select all

HKLM\Software\Caphyon\Advanced Installer\Advanced Installer 7.1.3
How can I perform that?
Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Get And Use Registry Value In a command line

Hello,

This is not directly supported by the command line. However you can use the following script to extract a value from the registry and store it in an environment variable. You can then use that environment variable in your commands.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”