简体   繁体   English

制作一个Windows程序thumbdrive便携式

[英]Making a windows program thumbdrive portable

I am currently trying to make an application portable. 我目前正在尝试使应用程序可移植。

Where are the common places that an application puts its settings in a windows machine? 应用程序将其设置放在Windows机器中的常见位置在哪里?

do you know know of any other places besides 你知道其他任何地方吗?

-registry -registry

-Currentuser/Application Data -Currentuser / Application Data

-app folder -app文件夹

?

After you go over all the places you could think of, try running your app with Process Monitor in the background. 在您浏览了所有可以想到的地方之后,尝试在后台使用Process Monitor运行您的应用程序。 Using the right filters, it will show you which registry keys and files have been accessed. 使用正确的过滤器,它将显示已访问的注册表项和文件。 And, it will show the exact stack trace of every operation, so you won't have a hard time finding the source of those calls. 并且,它将显示每个操作的确切堆栈跟踪,因此您不会很难找到这些调用的来源。

Just for completeness - There are a couple of places within the registry (current-user and local-machine). 只是为了完整性 - 注册表中有几个地方(当前用户和本地机器)。 It depends how the developer stored it. 这取决于开发人员如何存储它。

As sean has said in comment, this also depends on the application framework and windows version. 正如肖恩在评论中所说,这也取决于应用程序框架和Windows版本。 (Thanks sean) (谢谢肖恩)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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