标签: install

如果用户安装了.Net Framework,如何在Windows注册表中检测?

如果用户安装了.Net Framework,如何在Windows注册表中检测到?我不是在寻找基于.Net的解决方案,因为查询来自InnoSetup.

我从阅读Stack Overflow上的另一篇文章了解到.Net Framework是4.0的现场升级.

我已经知道如何检查用户是否在系统上安装了4.0版,即通过检查以下内容:

function FindFramework(): Boolean; 
var
 bVer4x0: Boolean;
 bVer4x0Client: Boolean;
 bVer4x0Full: Boolean;
 bSuccess: Boolean;
 iInstalled: Cardinal;
begin
 Result := False;
 bVer4x0Client := False;
 bVer4x0Full := False;


 bVer4x0 := RegKeyExists(HKLM, 'SOFTWARE\Microsoft\.NETFramework\policy\v4.0'); 
 bSuccess := RegQueryDWordValue(HKLM, 'Software\Microsoft\NET Framework Setup\NDP\v4    \Client', 'Install', iInstalled);
 if (1 = iInstalled) AND (True = bSuccess) then bVer4x0Client := True;
 bSuccess := RegQueryDWordValue(HKLM, 'Software\Microsoft\NET Framework Setup\NDP\v4        \Full', 'Install', iInstalled);
 if (1 = iInstalled) AND (True = bSuccess) then bVer4x0Full := True;

 if (True = bVer4x0Full) …
Run Code Online (Sandbox Code Playgroud)

.net registry install inno-setup

3
推荐指数
1
解决办法
5058
查看次数

在centos上安装pdo_pgsql

我在CentOS 5.7上运行命令下面的命令安装了pdo_pgsql

pecl install pdo_pgsql
Run Code Online (Sandbox Code Playgroud)

但它没有在phpinfo页面显示为已安装的扩展.我在那里看到的唯一信息是

--with-pgsql=shared
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?

在我的机器上安装了php 5.3.3.

postgresql pdo install pecl

3
推荐指数
1
解决办法
2万
查看次数

将应用程序安装到SD卡(外部存储)

我试图将我的Android应用程序的默认安装位置设置到我的SD卡(外部存储器).所以我尝试了这些命令,

adb shell pm getInstallLocation(显示0 [auto])

所以我运行此命令使其成为SD卡

adb shell pm setInstallLocation 2

我再次运行此命令以查看命令是否成功运行.

adb shell pm getInstallLocation(这显示2 [外部]

但毕竟这些仍然是我的应用程序正在安装到内部存储器,我的手机内存空间问题.任何帮助将不胜感激.

android install android-sdcard

3
推荐指数
1
解决办法
1万
查看次数

我为python3安装了PyOpenGl,当我导入包时,我得到了值错误

我想从一些PyOpenGL开始,所以我启动进入Mac Osx尝试它.我去了PyOpenGl网站,下载了PyOpenGl和PyOpenGl_accelerate tars,cd进了我的下载目录,然后在终端输入这些命令进行安装:

tar -zxvf PyOpenGL-3.0.2.tar.gz
cd PyOpenGL-3.0.2
python3 setup.py install #I changed 'python' to 'python3' to install it to my python3. 
Run Code Online (Sandbox Code Playgroud)

接下来,我键入这些来安装加速包

tar -zxvf PyOpenGL-accelerate-3.0.2.tar.gz
cd PyOpenGL-accelerate-3.0.2
python3 setup.py install #Again, 'python' replaced with 'python3'
Run Code Online (Sandbox Code Playgroud)

最后,我运行此代码来测试安装

python3
>>>from OpenGL.GL import *
Run Code Online (Sandbox Code Playgroud)

这给了我这一串可爱的错误

    Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/PyOpenGL-3.0.2-py3.3.egg/OpenGL/GL/__init__.py", line 3, in <module>
    from OpenGL.GL.VERSION.GL_1_1 import *
  File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/PyOpenGL-3.0.2-py3.3.egg/OpenGL/GL/VERSION/GL_1_1.py", line 10, in <module>
    from OpenGL import platform, constants, constant, arrays
  File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/PyOpenGL-3.0.2-py3.3.egg/OpenGL/arrays/__init__.py", line …
Run Code Online (Sandbox Code Playgroud)

python macos install pyopengl

3
推荐指数
1
解决办法
3736
查看次数

在VSIX安装期间/之后运行脚本?

是否可以在VSIX安装期间或之后自动运行脚本(批处理文件,powershell等)?我正在尝试解决这个问题,这需要在$ RootKey $之外的注册表中写入一个值.我希望我可以简单地调用批处理或PowerShell脚本来为我执行所需的注册表编写.我已经编写了脚本,我只是不确定在VSIX安装过程中如何或者是否可以调用它们.

我的VSIX中已经有一个.pkgdef文件,所以我希望我可以在该文件的底部执行类似"Start [PathToBatchScript]"的操作来运行我的批处理脚本,但它似乎没有工作.

我已经在一些地方读过,这对于旧的2010 VSIX型号来说是不可能的,但我希望它随着2012年的新型号而改变.

我们正在使用Visual Studio 2012.任何建议都表示赞赏.谢谢.

registry install vsix

3
推荐指数
1
解决办法
1206
查看次数

尝试运行RabbitMQ时出现Erlang错误

我正在尝试在Windows 7 64位中安装带有Erlang的RabbitMQ.我正在安装:

R16B01 Windows 64 Bit Binary File
rabbitmq-server-3.1.5.exe
Run Code Online (Sandbox Code Playgroud)

一步一步地遵循本教程

http://www.youtube.com/watch?v=x9wwZAuub1w
Run Code Online (Sandbox Code Playgroud)

但是在运行命令时:"rabbitmq-plugins enable rabbitmq_management"

出现此错误:

{error_logger,{{2013,9,12},{13,23,53}},"Failed to create cookie file 'z:/.erlang
.cookie': enoent",[]}
{error_logger,{{2013,9,12},{13,23,53}},crash_report,[[{initial_call,{auth,init,[
'Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{"Failed
to create cookie file 'z:/.erlang.cookie': enoent",[{auth,init_cookie,0,[{file,"
auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server
,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{f
ile,"proc_lib.erl"},{line,239}]}]},[{gen_server,init_it,6,[{file,"gen_server.erl
"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]
}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[<0.17.0>]},{d
ictionary,[]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},
{reductions,951}],[]]}
{error_logger,{{2013,9,12},{13,23,53}},supervisor_report,[{supervisor,{local,net
_sup}},{errorContext,start_error},{reason,{"Failed to create cookie file 'z:/.er
lang.cookie': enoent",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth
,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server
.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239
}]}]}},{offender,[{pid,undefined},{name,auth},{mfargs,{auth,start_link,[]}},{res
tart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2013,9,12},{13,23,53}},supervisor_report,[{supervisor,{local,ker
nel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,au
th,{"Failed to create cookie file 'z:/.erlang.cookie': enoent",[{auth,init_cooki
e,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]}
,{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do
_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}},{offender,[{pid,undefined},{na
me,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{
shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2013,9,12},{13,23,53}},crash_report,[[{initial_call,{application
_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0
.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,
net_sup,{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file 'z:
/.erlang.cookie': enoent",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{
auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_se
rver.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line
,239}]}]}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"ap …
Run Code Online (Sandbox Code Playgroud)

windows erlang install rabbitmq

3
推荐指数
1
解决办法
3572
查看次数

自制libtool安装卡在`rm -rf`

libtool不会通过Homebrew MacPorts(RVM需要)安装在我的Mac上.

这是详细的输出,它永远挂起,运行OS X 10.9和Xcode 4.3

    libtool: link: ( cd "libltdl/.libs" && rm -f "dlopen.la" && ln -s "../dlopen.la" "dlopen.la" )
/bin/sh ./libtool --tag=CC   --mode=link cc  -g -O2 -no-undefined -version-info 10:0:3 -dlpreopen libltdl/dlopen.la   -o libltdl/libltdl.la -rpath /usr/local/Cellar/libtool/2.4.2/lib libltdl/loaders/libltdl_libltdl_la-preopen.lo libltdl/libltdl_libltdl_la-lt__alloc.lo libltdl/libltdl_libltdl_la-lt_dlloader.lo libltdl/libltdl_libltdl_la-lt_error.lo libltdl/libltdl_libltdl_la-ltdl.lo libltdl/libltdl_libltdl_la-slist.lo libltdl/argz.lo
libtool: link: rm -f libltdl/.libs/libltdl.nm libltdl/.libs/libltdl.nmS libltdl/.libs/libltdl.nmT
libtool: link: (cd libltdl/.libs && cc -g -O2 -c -fno-builtin -fno-rtti -fno-exceptions  -fno-common -DPIC "libltdlS.c")
brew: superenv removed: -g -O2
libtool: link: rm -f "libltdl/.libs/libltdlS.c" "libltdl/.libs/libltdl.nm" "libltdl/.libs/libltdl.nmS" …
Run Code Online (Sandbox Code Playgroud)

homebrew install makefile libtool

3
推荐指数
1
解决办法
841
查看次数

在Windows 7上使用VBScript安装inf驱动程序

我正在尝试编写一个在Windows 7上安装USB /以太网适配器的VBS脚本.

我有这个设备的.INF文件.

我第一次尝试:

Dim WshShell, res
Set WshShell = WScript.CreateObject("WScript.Shell")
res = WshShell.Run(WshShell.ExpandEnvironmentStrings( "%SystemRoot%" ) & "\System32\InfDefaultInstall.exe "" C:\Users\Me\Driver.inf """, 1, True)
Run Code Online (Sandbox Code Playgroud)

res 等于2.

然后我搜索另一种方式来做到这一点,我发现:

Dim WshShell, res
Set WshShell = WScript.CreateObject("WScript.Shell")
res = WshShell.Run(WshShell.ExpandEnvironmentStrings( "%SystemRoot%" ) & "\System32\rundll32.exe SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 ""Driver.inf""", 1, True)
Run Code Online (Sandbox Code Playgroud)

res等于0,但我有一个错误弹出窗口Installation failed.

我的代码出了什么问题?对于记录,脚本以管理权限启动.

编辑

我试图直接在提示符中执行第一个命令并得到:The inf file you selected does not support this method of installation..

在提示符中第二个命令没有任何反应.

这非常奇怪,因为我可以在启动设备管理器时"手动"安装驱动程序并选择inf文件(带警告:) Windows can't verify the publisher of …

windows installation install driver inf

3
推荐指数
1
解决办法
1万
查看次数

当我替换正在运行的PostgreSQL服务器使用的.so文件时,它会崩溃

我在CentOS 5.8上运行PostgreSQL 9.2.8.

构建我自己的contrib模块,我发现只是extension_name.so通过更改文件cp使服务器进程崩溃,但刷新extension_name.so文件make && make install正常工作.

这看起来很严重,因为服务器进程崩溃会导致意外重新启动集群.

这是完全一样的pg_stat_statements,并pg_buffers根据我自己的测试.

为什么会这样?谢谢.

c unix postgresql install mmap

3
推荐指数
1
解决办法
92
查看次数

如何安装Tkinter?

如何在我的PC上安装tkinter?
我尝试了一周来安装它。我想不明白。请帮忙。
它是如何工作的 ?您有安装它的网站吗?

python install tkinter

3
推荐指数
1
解决办法
5101
查看次数