需要帮助创建自定义软件的自动运行设置 [英] Need help creating the Autorun setup for customized software

查看:70
本文介绍了需要帮助创建自定义软件的自动运行设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我开发了一个定制软件以及演示版(试用版)和相同设置。它的工作正常如预期。



这个软件使用MS Access数据库,它将位于系统的C盘中。当我试图在某台机器上安装它时,我获得权限错误,这是它无法访问每个系统上的C驱动器。所以我想到了另一种出路。



现在,我想进行设置我们从市场上获得CD只在我们插入cd时运行程序。我无法弄清楚,在哪里为这种类型的CD创建数据库?



如果我们购买游戏CD,那么它会记住等级,分数,玩家名称等,即它在某处存储数据。所以我的问题是



1)如何制作仅在插入cd时运行的程序/设置(无需安装)?



2)关于数据库使用哪种技术?



我期待你的宝贵回复。我非常感谢。

Hello everyone

I have developed one customized software as well as demo(Trial Version) and setup for the same. Its working fine as expected.

This software uses MS Access database that will be located in C drive of the system.When i tried to install it on some machine,i got error for permissions,that is its not able to access C drive on every system.So i thought about another way out.

Now,i want to make setup like we get CDs from market that runs program only when we insert the cd.I am unable to figure out,where the database is being created for this type of CDs?

If we purchase game cds,then it remembers level,score,player name etc,that is it stores data somewhere. So my question is

1) How to make program/setup that runs only when we insert cd(No installation required)?

2) Which technique to be used as per as the database is concerned?

I expect your valuable responses. I really appreciate the same.

推荐答案

1)不要在程序中硬编码任何路径。甚至没有设置。让用户选择放置程序文件的位置。这也适用于数据库。

好​​处是用户可以选择他具有写权限的路径。



2)有一些软件使用CD驱动器中的CD来检查您是否有付费实例,或者您是否只是从某人的PC上复制了数据。最简单的方法是在安装过程中将路径存储到CD上的文件,并在程序启动时检查该文件是否可访问。

有更复杂的方法,但所有这些方法都是注定要失败就像一个简单的事情,当一些家伙感觉有足够的能量和意图规避你的措施。



3)你可以直接从CD运行软件安装。但是你不能在那里存储任何数据。如果你想(比如在你的游戏示例中)你必须能够访问可写媒体。



4)对于自动运行功能,只需放置一个名为 autorun.inf 在您的分发媒体的根目录中,让它包含
1) Don't hard code any path in your program. Not even in setup. Let the user choose where to put program files. That applies to databases, too.
The benefit is that the user can choose a path that he has write permissions to.

2) There is software that uses a CD in the CD drive to check if you have a paid instance or if you simply copied the data off of someone's PC. The easiest way to do this is to store the path to a file on the CD during installation and check upon program start, if that file is accessible.
There are more sophisticated ways, but all of them are as doomed to fail just as the easy one is when some bloke feels has enough energy and intention to circumvent your measures.

3) You can run software directly from CD without installing. But you cannot store any data there. If you want to (like in your gaming example) you have to have access to a writable medium.

4) For autorun functionality, just place a file named autorun.inf in the root directory of your distribution medium and let it contain
[AutoRun]
open=YourProgramExecutable.exe
icon=YourAwesomeIcon.ico
action=Descriptive text to let user know what will happen when running your software


这篇关于需要帮助创建自定义软件的自动运行设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆