简体   繁体   中英

Application does not work when installed with Inno Setup

I am developing desktop database application. Using rdlc report and reportviewer. Everything was fine in developing process, reportviewer was showing all data smoothly. I deploy app with Inno Setup. But when I install the app, the reportviewer is not showing data. While data is correctly inserted in the tables.

For applications that work incorrectly or fail completely, when installed by Inno Setup to Program Files folder, the first thing to test, is to try to deploy the application manually to the same folder.


If the application fails even after a manual deployment, the most usual problem is that the application requires a user to have write permissions to application folder. As on modern versions of Windows a user typically does not have write permissions to the Program Files folder, the application does not work. So the problem usually has nothing to do with Inno Setup, but it's a problem of the application itself.

To solve the problem:


There are numerous other possible reasons, why the application might be failing when installed, including:

  • You omitted some dependency:

    • DLL library
    • .NET assembly
    • .NET Framework
    • Java Runtime Environment
    • other runtime
    • COM/ActiveX object, etc.
  • The application requires some configuration:

    • a file
    • a registry key [including COM/ActiveX object registration]
    • an environment variable, etc.
  • The application is not designed to be executed from a folder that has a space in its name ( Program Files ).

  • The application gets confused by Windows File virtualization (though it's unlikely). See Application installed with Inno Setup writes files to unknown location instead of its installation folder .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM