I have an old C++ application that I have recently added CLR support to. This was so that I could use mage.exe to generate the manifest files necessary to create the app as a ClickOnce app. After some frustrating work, I was able to get the manifest files created.
Now, I want to create the setup.exe file similar to what you would get if you use the Publish option in a C# project. The file would check for the Prerequisites of .NET Framework 4.0, Windows Installer 3.1, and Visual C++ 2010 x86 Redistributable, and install if necessary.
I have tried using the Bootstrapper Manifest Generator but I am not sure how to get it to check for and install all 3 prerequisites and launch the ClickOnce .application file that I have. Documentation for the product is a little piecemeal.
I have also tried unsuccessfully to use msbuild /target:publish to imitate the publish option you would see in a C# project.
I have even tried editing the .vcxproj file to include a BootstrapperFile (as demonstrated here: http://msdn.microsoft.com/en-us/library/ms164294.aspx and CustomAction succeeds on development computer, fails on deployment computer) to no avail.
Is it possible to add some dependency in my application manifest (myapp.exe.manifest) similar to how the CLR is set as a preRequisite?
<dependency>
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" />
</dependentAssembly>
</dependency>
So, can anyone provide any guidance as to how I might generate an install package that checks for the prerequisites I mentioned above, install if necessary, then launch my ClickOnce .application file? I think the difficult part here is that it is a C++ CLI Clickonce application and there is no IDE support to create the setup package.