question

TkTech avatar image
0 Votes"
TkTech asked RLWA32-6355 answered

Configure MSI installer to read text file during installation

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.

dotnet-csharp
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TkTech,
There is a method in this thread you can refer to.
Best Regards,
Daniel Zhang


0 Votes 0 ·

Thanks @DanielZhang-MSFT
Will it work with a Windows Service installer. My application is a Windows service created in VS 2019. For this app, I shall create an installer. So will this solution work there also ?

0 Votes 0 ·

1 Answer

RLWA32-6355 avatar image
0 Votes"
RLWA32-6355 answered

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



build-output.png (17.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.