How do I make my program work in Windows Vista and Windows 7?

后端 未结 5 1021
离开以前
离开以前 2020-12-28 10:22

I have an application written in Delphi 2006 that was working fine in Windows XP. I packed the application using Inno Setup, using Program Files as the default folder. A few

5条回答
  •  梦毁少年i
    2020-12-28 10:56

    Files you create for use by your application other than at installation time should go into the ProgramData directory if its global to the workstation, or into the users ApplicationData directory if its specific to the user.

    For cases where you absolutely must place a file in the program files directory, you can use com to request elevation. This is discussed in great detail, and delphi specific bits are also available. One example that I have used this is in patching my users installation base. They are warned by UAC that the system needs to make changes, so if your doing this as an automated task, you might need to rethink the logic to be more user driven.

提交回复
热议问题