This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Writing registry key values dynamically
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2009
04:31 PM
Writing registry key values dynamically
Hi guys! 🙂
Firstly, sorry for the silly questions, but unfortunately I can’t find help anywhere else on the internet...
I need to accomplish the following tasks in a Basic MSI project (desirably without involving complex programming):
1. Write a value of a registry key that would contain a path which application is being installed in (that is, a destination path on a destination computer);
2. Call a command line utility from a custom action and pass as one of its parameters the very same path (mentioned above).
Well, I know I’m an illiterate fool, still... :confused:
Any help would be highly appreciated 🙂
Firstly, sorry for the silly questions, but unfortunately I can’t find help anywhere else on the internet...
I need to accomplish the following tasks in a Basic MSI project (desirably without involving complex programming):
1. Write a value of a registry key that would contain a path which application is being installed in (that is, a destination path on a destination computer);
2. Call a command line utility from a custom action and pass as one of its parameters the very same path (mentioned above).
Well, I know I’m an illiterate fool, still... :confused:
Any help would be highly appreciated 🙂
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2009
06:06 PM
In a Basic MSI project, the overall installation directory is stored in a property called INSTALLDIR, and in InstallShield's registry views you can use value data [INSTALLDIR] (with the brackets) to have the value expanded at run time. No programming required!
Likewise, you can create a launch-an-EXE custom action with [INSTALLDIR] as one of the arguments, and the value will be expanded at run time.
The standard example is launching Notepad with a readme file you're installing, where your launch-EXE custom action runs the command:
notepad.exe "[INSTALLDIR]Readme.txt"
during deferred execution after InstallFiles runs, often with condition Not Installed.
Likewise, you can create a launch-an-EXE custom action with [INSTALLDIR] as one of the arguments, and the value will be expanded at run time.
The standard example is launching Notepad with a readme file you're installing, where your launch-EXE custom action runs the command:
notepad.exe "[INSTALLDIR]Readme.txt"
during deferred execution after InstallFiles runs, often with condition Not Installed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 19, 2009
11:20 AM
Thanks a lot! Damn it, it's so easy :cool:
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)