Dynamic registry values and installation dir

Got a problem you cannot solve? Try here.
Post Reply
mr0mega
Posts: 2
Joined: Sun Jul 10, 2005 4:35 am

Dynamic registry values and installation dir

Post by mr0mega »

Hi,

1). I want to install my product to $ROOTDIR$\\Product

e.g. C:\\myProductand then write to a text file this path

e.g. C:\\myProduct\\Config.cfg

## TXT File ##
C:\\myProductIs this possible?

2). As in the second part of the query above I need to write a registry value based on where it was installed, the path will remain the same.

e.g. C:\\myProduct\\jvmIs this possible?

Thanks!
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Of course. Just use variables in the appropriate commands, and they will be substituted for whatever dynamic values they current hold during execution.
mr0mega
Posts: 2
Joined: Sun Jul 10, 2005 4:35 am

Post by mr0mega »

Which dynamic variable can I use to find the root drive of the computer then to get e.g. C:Thanks!
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Sure, just use the Get Folder Location command with the Special->Boot Path parameter to obtain the system root drive location.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Also, pursuant to our private conversation, please note that a Java project template exists and is provided with InstallAware. Just click File->New->Other and then choose the Templates tab to view the templates, then choose Java Script for a template setup script that will install the Java VM.
Post Reply