Configure MSI installer to read text file during installation

TkTech 56 Reputation points
2021-06-18T08:19:10.117+00:00

Please comment if there is a solution for my problem statement described below:

I) User visits my website, say, abc.com and goes to the download page .

II) He clicks download, so following 2 files get downloaded to his machine at his desired location , say:

E:\Downloads\SetUp.MSI
E:\Downloads\Key.txt

III) When he clicks on SetUp.MSI , installation begins. My question, is there a way to read the text file, Key.txt during Setup ? This file should be copied to user's C: Drive OR D: drive

I am using VS 2019 DotNet Installer project . Please suggest correct approach.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,411 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 48,151 Reputation points
    2021-06-23T14:04:24.507+00:00

    Instead of separately downloading key.txt you can package it in the .msi file. When the installer is executed the key.txt file will be installed to the user's system along with the Windows Service executable.

    108618-filesystem-editor.png

    108637-build-output.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.