Text file updates doesn't work for files installed to an unc path - Advanced Installer Community
Dima
Posts: 5
Joined: Fri May 04, 2018 11:42 am

Text file updates doesn't work for files installed to an unc path

I have an installation package with text file updates. If I choose an folder on a local disk as application folder during installation everything is fine. The text file updates are executed correctly during the installation process. If I choose an network folder per unc as application folder all files are copied correctly, but the text file which should be changed by the text file updates have the original unchanged content.

Additionally is the auto registration for native libraries not working, if i choose an unc path as application folder. There I got following error message in the log:
CustomAction +NativeLibrary.dll returned actual error code -2147220991 (note this may not be 100% accurate if translation happened inside sandbox)
Error 1904. Module \\server\application folder\NativeLibrary.dll failed to register. HRESULT -2147220991. Contact your support personnel.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Text file updates doesn't work for files installed to an unc path

Hello and welcome to our forums,

The text file updates operation could fail due to permissions issues. The TextFileUpdate operation runs under the LocalSystem account which does not have permissions on network shared locations by default. As a workaround you can configure the text file update operation to run impersonated with the current user account credentials (the user account under which the installation is running).

Just open you setup project in Advanced Installer, go to "Files and Folders" page, double click on the text file update operation entry and check the "Impersonate installing user" option.

In what regards the auto registration DLL issue, can you please enable the "Extract registration info from native library" option for your DLL and see if this works fine now?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dima
Posts: 5
Joined: Fri May 04, 2018 11:42 am

Re: Text file updates doesn't work for files installed to an unc path

Thank you very much!!!

Both problems could be solved with your advices.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Text file updates doesn't work for files installed to an unc path

You are always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”