Application installed with Inno Setup writes files to unknown location instead of its installation folder

后端 未结 1 1223
情话喂你
情话喂你 2021-01-16 16:07

I try to make a setup with Inno Setup for my program.

I have installed more file XML in the same folder as the .exe. The install work well, but when I run the progra

相关标签:
1条回答
  • 2021-01-16 16:30

    I think you are a victim of Windows File virtualization.

    You probably install data files to Program Files folder.

    That folder is not writable (unless your program runs with elevated privileges). If your program does not have application manifest, Windows considers it a legacy application that is not aware of its inability to write to Program Files and enables file virtualization. So, when your application tries to write the data/XML files, Windows redirects the write (and future reads) to a virtual store (C:\Users\username\AppData\Local\VirtualStore). The actual files in the Program Files are not modified.

    It's difficult to answer, why it works with the InstallAware Express. If you tried it after the Inno Setup, the results can be affected by an existence of the file in the virtual store.

    Anyway, the root cause is that your application tries to write the files in the Program Files. That's just wrong. No application should write to Program Files.
    See also Application does not work when installed with Inno Setup.

    0 讨论(0)
提交回复
热议问题