I have a text file, key.txt downloaded with an MSI Installer. Is it possible to configure this installer to read and copy this text file, 'key.txt' to target path during setup/installation ?
Scenario described below:
I) User visits my website, say, abc.com and goes to the download page. He clicks download, so following 2 files get downloaded to his machine at desired location, say:
E:\Downloads\SetUp.MSI
E:\Downloads\Key.txt
II) When he clicks on SetUp.MSI, installation begins. My question, is there a way to read this text file, 'Key.txt' during Setup ? This file should be then copied to target path of exe installation.
I am using VS 2019 DotNet Installer project . Please suggest correct approach.
What I have tried:
I tried doing this using PostBuildEvent of above installer, but this event is not firing during installation.