Background
I'm authoring an installer during which the user can select an installed entity certificate for use with SSL encryption (they can also choose to generate a new one, but that is outside of the scope of this problem as it is working correctly). I have a C# console application which does all of the certificate work included as a Temporary file. It performs various functions during installation and is also run as an attached file near the beginning of un-installations under certain circumstances to clean up the generated certificates.
The problem
I need to present the user with the list of available certificates from the Windows certificate store, which is easily accomplished in my console application and I can send the formatted data for a listbox to stdout to be read in via VBScript; the issue is that it has to run before the user sees the certificate selection dialog, which occurs before temporary files are copied.
Potential, yet undesirable, solution
I can launch the .exe as an attached file and have it write to a file instead of stdout, then have another custom action read that file and set the property. I don't really want to do it this way if I don't have to (I'd much rather keep it all in memory than write it to disk, then have to delete it shortly thereafter).
Thank you,
- Adam
FOLLOW US
Get the latest news in Application Packaging