I have problem with function „New Text File Update“.
I need create msi package which does following steps:
1. Append some text in to file "%windir%\System32\drivers\etc\services"
2. Add some record to „HKEY_CURRENT_USER\Software\MyAplication“
My solutions
Create „New Text File Update“ of file "%windir%\System32\drivers\etc\services" – no problem
Add record to „HKEY_CURRENT_USER\Software\MyAplication“ –No problem
Because application hasn’t any exe file I have to use „active setup“ – No problem
Process
Msi package is installing under „SYSTEM“ account.
Msi installed and my text was appended in to file "%windir%\System32\drivers\etc\services"
Login under "normal user account" > going to execute „active setup“ (msiexec /fup {GUID}) and after “active setup” is my text in file "%windir%\System32\drivers\etc\services" twice.
Quesction
How to append my text only once? Or how to force execute function "New Text File Update" during active setup?
Project file is in attachment
Thank you for help.
FOLLOW US
Get the latest news in Application Packaging