我目前正在尝试创建用于安装程序的自定义脚本。我需要检查是否安装了 Crystal Reports 13 的运行时引擎,如果没有安装。这就是我想要做的:
//check crystalReports
if (not RegKeyExists(HKLM, 'Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports')) then
begin
crystalReportsNeeded := true;
if (not IsAdminLoggedOn()) then begin
MsgBox('GasSoft needs the Crystal Reports to be installed by an Administrator', mbInformation, MB_OK);
Result := false;
end
else
begin
memoDependenciesNeeded := memoDependenciesNeeded + ' Crystal Reports' #13;
SetIniString('install', 'dotnetRedist', dotnetRedistPath, ExpandConstant('{tmp}\dep.ini'));
end;
end else
begin
MsgBox('installed cr', mbInformation, MB_OK);
end;
Run Code Online (Sandbox Code Playgroud)
所以这是将 var caleed crystallreportsneeded 更新为 true 或 false。此变量将用于文件的检查功能。我在控制面板上检查了运行时引擎是否已安装,但是每次我运行安装程序时,它都会尝试安装该文件。我错过了什么。,注册码正确吗?
经过一番搜索,我发现有些人没有搜索文件夹而是转到 HKLM->Windowns->CurrentVersion->Unistall 中的 uninstall …
我正在尝试访问一些海康威视闭路电视摄像机。我有so文件和jar文件。当我尝试运行该程序时,它说
Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/idonic.mobileapp.androidhikvision-1/base.apk"],nativeLibraryDirectories=[/data/app/idonic.mobileapp.androidhikvision-1/lib/arm, /data/app/idonic.mobileapp.androidhikvision-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libMPCtrl.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at org.MediaPlayer.PlayM4.Player.<clinit>(Player.java:775)
at idonic.mobileapp.androidhikvision.PlayBackByTime$LoadingDevicesTask.doInBackground(PlayBackByTime.java:80)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Run Code Online (Sandbox Code Playgroud)
当我尝试调用时发生错误
player = Player.getInstance();
Run Code Online (Sandbox Code Playgroud)
这是我程序的当前结构
错误说它在某个不是我的项目的文件夹中找不到路径,所以我想我错过了一些东西。也许我需要声明 so 文件所在的新文件夹。
这是我的 build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "idonic.mobileapp.androidhikvision"
minSdkVersion 10
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags "-frtti -fexceptions"
}
}
ndk {
abiFilters "armeabi", "armeabi-v7a" …Run Code Online (Sandbox Code Playgroud)