I have what is hopefully a simple issue. I want to:
1) Collect user credentials (login/password).
2) Launch custom binary that encrypts this password - this binary can write to a file on disk (let's call is userpass.ini)
3) Read userpass.ini and write this value (and many other values) to a separate ini file during the "Add Resources" phase (let's call this config.ini)
This seems straight forward. I have a Custom Action that launches the custom binary and writes the ini file. I have a Search that executes and retrieves the raw value of this ini file. However, what happens is I cannot get the installer to read the encrypted password (userpass.ini) correctly when the file does not exist prior to the installer running. The installer only writes the correct, encrypted password to config.ini when userpass.ini exists before running the installer. Obviously, that's not going to happen; I need to both write userpass.ini, then read it, then write to config.ini.
What am I missing? My search runs before the custom binary runs so...I cannot figure it out. Help!
FOLLOW US
Get the latest news in Application Packaging