安装应用程序后无法创建新的视频文件 [英] Can not create new video file after installing the application

查看:79
本文介绍了安装应用程序后无法创建新的视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序可以记录来自网络摄像头的视频,而不是以.avi格式将该视频存储在指定文件夹中。在我的应用程序中,它工作正常,但是当我创建并安装它时,它不会将视频保存在指定的目录中(默认情况下,目录位于users文件夹,appdata / roaming / appname /)。我怎么能摆脱这个????谁能帮我吗?在此先感谢...

I have an application that records a video from webcam and than stores that video in specified folder in .avi format. In my application it is working perfectly alright but when i created the setup and install it, it is not saving the video in the specified directory(by default the directory is in users folder, appdata/roaming/appname/). How can i get rid out of this???? Can any one help me out? Thanks in advance...

推荐答案

我认为你说你的程序运行正常并在你开发它时做了你想要的但是当你安装它时没有在用户机器上。



这里有很多可能性,但这里有一些想法:

- 你的安装程序(和/或您的程序)需要创建...%user%/ appdata / roaming / appname并确保它具有正确的权限。

- 您(错误地)认为的另一个目录中的文件保护问题是输出目录。您需要为已安装的版本添加调试/日志/跟踪功能。

- 您的程序是否需要管理员访问权限?目标计算机上的安装程序可能需要管理员权限。在目标计算机上运行该程序可能需要管理员权限。
I think you are saying that your program runs fine and does what you want when you are developing it but does not when you install it on a user machine.

There are a lot of possibilities here but here are a few thoughts:
- Your installer (and/or your program) needs to create the ...%user%/appdata/roaming/appname and make sure it has the correct permissions.
- File protection problem in another directory that you (incorrectly) think is the output directory. You would need to add debug/log/trace features to the installed version.
- Does your program require administrator access? The installer on the target machine may need admin rights. Running the program on the target machine may need admin rights.


这篇关于安装应用程序后无法创建新的视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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