I did this in a setup program that I included in a ClickOnce bootstrapper.
It worked successfully when the program was published to and ran from a disk, but not when published to the web. The program when downloaded from the webfailed to install with the following error:
An error occurred while installing system components for<ClickOnce program name>. Setup cannot continue until all system components have been successfully installed.
The following package files could not be found
C:\Documents and Settings\<window user name>\Local Settings\Temporary Internet Files\Content.IE5\ASL2CVHR\<prerequisite package name>\<setup program>.ms
Any suggestions?