locked
Dependency files with C# app and installer with Inno Setup RRS feed

  • Question

  • Hello,

    I developed a small app with C# .NET and I created a installer with Inno Setup, but when I run the installer, the user can choose any folder to install the app and the problem is that my app depends on the location about some dependency files. The dependency files are indispensable for the proper functioning of the app.

    So, if the dependency files are not installed in the correct folder, my app does not work.

    I'm wondering whether in C#, the app could be independent of location of files dependency. For example, is it possible in C# to find the dependency files anywhere in the computer?

    Maybe, is there something with Inno Setup to fix this issue?

    For instance, I remember that most softwares I installed in my computer lets me to choose any location to install dependency files for the app, so I'm wondering how is it possible for the software to guess where are the dependency files?

    Thanks.

    • Moved by CoolDadTx Tuesday, June 23, 2020 2:01 PM Setup related
    Monday, June 22, 2020 10:33 PM

All replies

  • 'm wondering whether in C#, the app could be independent of location of files dependency. For example, is it possible in C# to find the dependency files anywhere in the computer?

    What dependency files are you talking about? And what Windows O/S version are you trying to deploy your solution to?

    Monday, June 22, 2020 10:36 PM
  • An alternate is

    https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Tuesday, June 23, 2020 12:15 AM
  • Hi speed780,

    Thank you for posting here.

    In ClickOnce, we can select the files to be included through Application Files.

    Although Inno Setup is a third-party application, I think it should have similar functions.

    According to their official website, they provide support here.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 23, 2020 2:56 AM
  • I mean that my app uses some dll and needs a PDF file. So, if these files are not installed in the correct folder, then the app does not work. I'm using Windows 10.

    So, I'm wondering how my app will work if the user can install anywhere these files?

    Thanks.


    • Edited by speed780 Tuesday, June 23, 2020 9:19 PM
    Tuesday, June 23, 2020 9:19 PM
  • Hi speed780,

    Inno Setup is a third-party product, most members here are not familiar with this.

    According to the instructions on their official website, they provide support in the Google Group.

    Moreover, you can also ask questions with inno-setup tags in stackoverflow.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Wednesday, June 24, 2020 8:50 AM