I have created a custom action for installing my service to windows. I have a custom dialog in the setup that retrieves a name for the instance of the service.
When installing I want to install the product to the following path: [company name][product][instance]
, where instance
is the name that I retrieve from the custom action. I can retrieve the value entered for instance
but need to know how to specify it as a folder in the installation directory.
Any help is greatly appreciated.
Thanks,
pie154
You can save the instance name in an installer property, for example INSTANCE. If you are using a Windows Installer dialog to retrieve it, you can simply use the edit box control property.
This way your default installation path can be something like this:
[ProgramFilesFolder][Manufacturer] [ProductName] [INSTANCE]