mdf file not attached when deployed using Windows Installer?

hello guys

I do have mdf data file which is static, when i tried to deploy using Windows Installer method. The mdf file was not attached. But when i use the OnceClick method, the file is attached and is running fine.

In the codes, i have set the connection to
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\myfile.mdf;Integrated Security=True

am i correct on this?

[387 byte] By [aloysiusf] at [2007-12-23]