在microsoft visual studio 2010中为c#桌面应用程序设置Intallshield exe
问题描述:
I am working with visual studio 2010 desktop application,access database as back-end.For my application I used InstallShield to create the exe file and it given me the exe file.When I am installed this exe file in other system it get installed but when I am trying to do any task which is related to my access database it's giving exception that your connection path ":c/path" is does not found. In exception the path which they showing that is right path which I given in the forms coding.But I want setup which will modify the path automatically and this setup has to be able to use in any system.Is this possible with the InstallShield or any other software will work for me? Please help?Thanks in Advanced!
我有什么尝试过:
我创建了installshield安装文件并试过我上面提到它不起作用我的期望任何一个任何一个任何想法我使用的软件创建一个所有系统都可以接受的设置(连接在所有系统中完美地工作)。
What I have tried:
I created the installshield setup file and tried has I mention above it does not working has my expectation any one any idea of which software I use to create a setup which acceptable by all systems(connection work perfectly in all system).
答
我可以推荐 Inno Setup ,它确实做一些研究,但它是免费的(即使是商业用途),可以解决困难的设置。直到现在我还没有遇到使用Inno Setup无法解决的情况。
主页:
在设置 [ ^ ]
访问示例:
https://accessexperts.com/blog/2014/09/16/inno-setup-create-professional- installation-ms-access-solutions / [ ^ ]
有关SQL Server的示例,请参阅我的提示:
安装SQL Server 2008 R2的Inno安装脚本使用工具 [ ^ ]
I can recommend Inno Setup, it does take some study, but it's free (even for commercial use) and can tackle difficult setups. Till now I haven't encountered a situation which couldn't be solved using Inno Setup.
Homepage:
Inno Setup[^]
Example for Access:
https://accessexperts.com/blog/2014/09/16/inno-setup-create-professional-installation-ms-access-solutions/[^]
See my tip for an example with SQL Server:
Inno Setup Script to Install SQL Server 2008 R2 with Tools[^]
另一个可能对您更感兴趣的安装程序是 SSE设置:
SSE设置 - 简介 [ ^ ]
它承诺轻松访问数据库部署。
几年前我尝试过这种方法(不是使用Access),发现它非常用户友好。
但是对于我的需求以及我编写的软件的复杂性,它写得太有限了,因为作者说不是一些复杂的脚本语言!,而这正是与Inno Setup相比的弱点。 Pascal脚本语言。
Another installer that might be more interesting to you is SSE Setup:
SSE Setup - Introduction[^]
It promises "Easy Access database deployment".
I tried this several years ago (not with Access), and found it to be very user friendly.
But for my needs and the complicated nature of the software I write it was too limited, as the author states "NOT some complicated scripting language!", and this is exactly the weak point compared to Inno Setup which has a Pascal scripting language.