- 博客(0)
- 资源 (2)
空空如也
instantclient-basic-nt-12.1.0.1.0_Installer.exe
基于pioayang上传的instantclient-basic-nt-12.1.0.1.0.zip(下载次数2120次),通过Setup Factory对该oracle客户端程序进行打包,生成32位windows系统的.exe安装包,并通过脚本自动修改系统环境变量PATH,添加系统环境变量NLS_LANG,避免用户手动修改环境变量的麻烦(32位和64位win7亲测均可用,32位需重启)。
Setup Factory安装时修改环境变量脚本如下:
strPath=Registry.GetValue(HKEY_LOCAL_MACHINE,"SYSTEM\\ControlSet001\\Control\\Session Manager\\Environment","Path",true); strPathtoAdd=SessionVar.Expand("%AppFolder%");
if String.Find(strPath,strPathtoAdd)==-1 then strPath=String.Concat(strPath,";");
strPath=String.Concat(strPath,strPathtoAdd);
Registry.SetValue(HKEY_LOCAL_MACHINE,"SYSTEM\\ControlSet001\\Control\\Session Manager\\Environment","Path",strPath,REG_SZ);
end
Dialog.Message("Oracle修改系统环境变量Path",strPath);
Registry.SetValue(HKEY_LOCAL_MACHINE,"SYSTEM\\ControlSet001\\Control\\Session Manager\\Environment","NLS_LANG","SIMPLIFIED CHINESE_CHINA.ZHS16GBK",REG_SZ);
Dialog.Message("Oracle添加系统环境变量NLS_LANG","SIMPLIFIED CHINESE_CHINA.ZHS16GBK");
2017-04-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人