View forum topic
List of forum topicsSubject: Applying Registry location to setup
I've been getting to know CreateInstall and using some of it's great features. Still a bit to go until I feel more confident with it.
Now here's a situation I want to resolve: I've created a number of Word 2010 templates which I want to pass to my client and using this program would be the easiest method of distribution.
These templates have to go into a special folder which has been set up by the user in their program options - and they are all different! The full path of this folder is located in their Registry.
Now, I can see how to enter the Registry key and value in the program and then create a variable. However, my first question is: how - and in which dialog - do I assign the Registry details to the variable?
The second question is: once I've got the key assigned to the variable how do I bring it into the setup so that it tells my installation program where to unpack the files?
Thanks for any help.
The first question. For example, you use the 'Registry - Get Value' command to get the folder path from the Registry. It has Variable Name parameter. Specify the variable name which will be assigned the folder path from the specified Registry key.
You can use this variable name in other commands. For example, you can specify it with Edit control in Dialog - Settings.
The second question. Specify Destination Path of the 'Installation Files' command as CUSTOM PATH and
Custom Path: #yourvariablename#
If you want to install all your files into that folder then specify variable name in the 'Registry - Get Value' command as setuppath. In this case, this folder will be in Dialog - Setup Path and you can specify Destination Path as INSTALL PATH in the 'Installation Files' command.
Thank you for your solution. It works beautifully!
Thanks again for your help.
I have CreateInstall free. I want add to path C:/<nameapp>/bin without cancel other setings. How to do?
Unfortunately, I didn't understand you. Can you explain more details?
If you want to install some files into bin subfolder of the installation path then insert additional Installation Files command with
your bin files and
Path: INSTALL PATH
Custom Path: bin
Suppose i have my executable in MyApp/bin .
With CreateInstall, in CreateInstall Fast-> Registry, I want to ADD a path in HKEY_CURRENT_USER\Environment the path MyApp/bin without deleting existing values. Is it possible in CreateInstall free?
CreateInstall Assistant cannot do that. You should switch to CreateInstall Advanced.
The full version has a special command 'Global Environment - Append', it can do what you need.
If you have Free or Light version then you shpuld insert Registry - Get Value command to get the current value into the variable (for example, curenv). Then insert 'Registry - Set Value' command with Value like this #curenv#;#setuppath#\bin
Thanks, it works.
Thanks, it works.
January 16, 2025 Installer CreateInstall 8.11.1 was released.
June 19, 2024 Installer CreateInstall 8.11.0 was released. read more
November 13, 2022 Installer CreateInstall 8.10.1 was released.
May 21, 2022 Installer CreateInstall 8.10.0 was released.
September 25, 2021 Installer CreateInstall 8.9.0 was released.
July 15, 2021 Installer CreateInstall 8.8.1 was released.