Hi Patrick,
I dont specify the Shp form library when running regform.
I use the following steps as specified in the link.
1)Run msi file and install the form in the local machine.The default path, it gets installed in is C:\Program Files\InfoPath Form Templates
2)Now open the template(.xsn) file from the "C:\Program Files\InfoPath Form Templates" path.
3)Save as say "template.xml" in ur local machine.
4)Edit the SharePoint form library using the Microsoft Front Page.
5)Copy the template.xml to the forms folder of your SharePoint form library in the Microsoft FrontPage.
6)In SharePoint,click the "Modify Settings and Columns" link.And then on the "Change general settings" link.
7)In the Form Library Settings page that appears,specify your template url. example: formlibrayname/Forms/template.xml
8)Now send the .msi file to all the users.Once they install it,they can click the "Fill out this form" link in sharePoint to view the form.
This is a work around used to deploy fully trusted Registered forms in SharePoint.
But the problem is that when I open Microsoft Infopath,I can view these forms in the "All Forms" or "Recently Used Forms" categories.
I dont want this.
I want the users of the form to be able to open this form only thru SharePoint.
Regards,
Abhishek