PDA

View Full Version : Setting ServerName value for DSN



skhodke
05-07-2004, 12:35 AM
Hi,

I am new to InstallShield. I want to create a DSN and set the Server field for the DSN. Also I want to get this from end user thrugh a dialog. How can I do it?

For this I have created a property DSN_SERVER_NAME in the Property Manager. From the InstallScript I am setting value of this property using MsiSetProperty function. And in DSN I am inserting value for ServerName as [DSN_SERVER_NAME]. But its not working. Am I missing something? What should I add to make it work? or is there any other approach?

Thanks in advance.

- Satish :)

skhodke
05-10-2004, 11:37 PM
I tried to change the "In-script execution" of my function to "Commit Execution" and at the end of the function I modifed the registry entries for server field under ODBC.INI

It worked for me...

I am not sure whether this is the correct way to solve this problem?

Any Comments?