Hi,
I'm having trouble with some Custom Actions using a .NET Installer Class. What I'm trying to do is pretty simple.
I have created a dialog that asks user to input a TCP port that will be later used to configure an app.config. Once user inputs port number and hits "Next" button, it is checked if port is available on the machine. If available, port number is copied from AI_BIND_TCP_PORT variable to an Installer Parameter called "ServerPort". This Installer Parameter has a default value of 3660.
The problem comes just here. Once user navigates through all dialogs and it comes the time to install, "ServerPort" parameter is passed to the .NET assembly, but I found that it is always passed with its default value 3660 , ignoring what user has indicated in the dialog. Installer log says that "ServerPort" variable has received the correct value (user input), but custom action call shows the parameter being passed with default value.
Is there any kind of issue doing this with a managed assembly or it is just that I'm doing something wrong. BTW, "hardcoded" parameters are being passed correctly.
TIA.
Regards,
A. Stukov.
FOLLOW US
Get the latest news in Application Packaging