File association & Setup

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I have created a Setup project wich includes couple of text file and it also
includes file association of .tsrx.

After the application is installed if I happen to delete any one of the text
files the Setup runs automaticaly and installs those text files back when I
double click on the any of the .tsrx files. How can I prevent this from
happening, I want the user to have an option of being able to delete these
text files.


Thanks

Peter
 
Hello Peter,

Thanks for posting. The situation you mentioned is the Resiliency feature
of Windows Installer:

INFO: Description of Resiliency in Windows Installer
http://support.microsoft.com/?id=290997

We have no way to disable the resiliency in VS.Net's setup project.
However, we can use some Windows Installer Platform SDK tool to achieve the
goal:

HOWTO: Use the Orca Database Editor to Edit Windows Installer Files
http://support.microsoft.com/?id=255905

We can use Orca to remove the "KeyPath" for the related components in the
"Component" table. We can associate the component with the file in the
"File" table.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thank you it worked, I just have to remember to remove those KeyPaths
everytime I rebuild the Setup.
 
Hi Peter,

Thanks for your update and sorry for the inconvenience. I admit that the
function of setup project in VS.Net is still quite limited.

Improving our products and services should be a never-ending process.
Please feel free to post here if you still have any further concerns
regarding this issue.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top