问题标签 [installshield-2011]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
8938 浏览

visual-studio-2010 - InstallShield LE“该产品的另一个版本已经注册”

我在 VS2010 中使用 InstallShield LE 遇到了障碍。第二次运行生成的 setup.exe(版本号递增),我收到错误

该产品的另一个版本已经注册

通过“增加的版本号”,我的意思是我在我的 .exe 的 AssemblyVersion 和 AssemblyFileVersion 中将次要版本、内部版本号和修订版更改为更大的数字(DLL 设置为“1.0.*”)

并且还将 Installshield LE 安装项目的常规信息选项卡中的产品版本从 0.10.0000 更新为 0.11.0000。

我确实在其他 SO 帖子和制造商的社区支持论坛中遇到过此错误消息的实例,但没有找到适用于我的解决方案。

0 投票
2 回答
2493 浏览

installshield-2011 - RegDBKeyExists function fails to read in Installshield

We have developed MSI package in Installshiled 2008 Premier Edition and project type is Installscript MSI, recently we bought 2011 and upgrdaded our project to 2011.

In earlier version we used to check the registry entries for Microsoft SQL Express and its path is

Now a new require came to create a package for 64 bit O.S., since O.S. is 64-bit but the registry path for SQL Express in 64 bit is

The registry function RegDBKeyExists is to check SQL registry's presence, but function is returning a negative number as -2147483646 and fails to read.

setting the option REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY will not help because we not reading 64 bit related registry Hive.

0 投票
1 回答
382 浏览

windows-installer - Installshield 包括卫星 dll

我在 installshield 项目中遇到了包括卫星 dll 的问题。

我尝试添加一个组件,例如“SatelliteNorwegian”用于挪威语安装,为此我将“数据语言”字段设置为挪威语。实际文件位于文件夹 [INSTALLDIR]/no-NB/ 中。我已将其设置为动态文件链接。

问题是我们的构建系统只会在我们构建挪威版本时拉入这个文件夹。这会导致构建错误,因为 installshield 找不到引用的文件夹。一种可能的解决方案是为我们支持的每种语言都包含一个空文件夹,目前有 9 种语言,而且还在增加。

有人知道解决这个问题的好方法吗?

0 投票
1 回答
3143 浏览

installation - 使用 InstallShield 2011 设置更改 app.config 中的连接字符串

我正在创建一个 InstallShield 2011 基本 MSI 安装程序项目。

我正在尝试根据设置中数据库登录对话框中的用户选择更改我的 app.config 中的连接字符串。如何将这些连接字符串设置应用于我尝试安装的 Windows 应用程序的 app.config 中的连接字符串条目?

XML 文件更改是正确的起点。由于更改连接字符串是一项常见任务,我希望有一个最佳实践来完成这项任务。

- 编辑 -

主要有两个困难:

  • 如何在 InstallShield 中引用将在构建时创建的文件?App.config 被复制到 MyAppName.config。我不想再次将应用程序名称硬连线到这个地方的设置中。

  • 配置文件中的连接字符串由 Entity 框架使用,因此包含的信息比从 InstallShield 中选择的数据库提供的信息要多。如果我只想更改连接字符串的Server和属性,我必须修补配置文件元素中的属性。InitialCatalog看起来 XML File Change 只支持替换整个元素或属性。

0 投票
1 回答
1320 浏览

installshield - installshield 合并模块中的安装后操作

我正在使用 installshield 2011。我有一个合并模块,我希望在安装合并模块后执行某些 exe。此 exe 是合并模块文件的一部分。现在,当我在合并模块中编写自定义操作时,该操作会在文件复制到目标位置之前执行。有没有办法在文件被操作后执行这个自定义操作,以便它可以在该位置找到 exe?或者有没有其他方法可以解决这个问题?

0 投票
2 回答
1579 浏览

windows-installer - 在安装期间使所有用户的文件读/写

我需要在安装过程中为所有用户创建一个文件读/写。目前,该文件仅供管理员读取/写入,并且仅供非管理员读取。

我正在使用 InstallShield Premier 2010。问题是我对这个产品很陌生,不太确定如何实现这一点。帮助文件几乎没有帮助。关于如何使用 InstallShield 实现这一点的任何想法。

如果存在,我也会对非 InstallShield 做事方式持开放态度。

谢谢

0 投票
3 回答
2222 浏览

windows-installer - MSI:仅在未安装另一个组件时如何安装组件

我的应用程序包含一个可选组件,其快捷方式取代了默认安装提供的快捷方式。如果未安装此可选附加功能,我无法弄清楚如何使其仅安装默认快捷方式 - 还是我只需要给它们两个相同的名称并希望最好?这需要通过自定义安装树以及常规按钮来工作。

看看它的工作方式是,如果在安装时选择了这个额外的,主应用程序的开始菜单快捷方式必须指向这个,它会在需要时自行打开主应用程序。

我正在使用 InstallShield 2011 Professional。

编辑:澄清一下-我确实将它分为三个组件:主要,主要的快捷方式和带有快捷方式的插件。我只是不知道如何检查插件是否已经/正在以一种我可以将其置于主要快捷方式的条件的方式安装。当然有一个变量吗?文档非常简陋。

0 投票
1 回答
2002 浏览

installshield - 如何添加进度条以便用户不会在对话框中点击取消?

我正在使用 Installshield 2011 开发一个基本的 MSI 项目。

我遇到的问题是 SetupInitialization 对话框在执行升级时需要大约 2 到 3 分钟。在这几分钟内,用户只能看到:

计算空间要求

似乎什么都没有发生。

我想添加某种进度条,以便他们意识到正在发生某些事情并且他们不应该点击取消(我们已经记录了此步骤需要一段时间,但当然每个人都会阅读文档,对吗?)

我尝试添加带有某种进度条的动画 GIF 文件,但似乎对话框中不允许使用 GIF 文件。

现在我正在探索进度条控件,但我不确定这是正确的方法。

有人知道我怎样才能实现我需要的吗?

谢谢,

0 投票
1 回答
555 浏览

.net - when InstallShield 2011 premier integrated in VS2010 .NET dependencies are not added at build time

I have added an IS2011 project to my existing VS2010 solution. My VS solution contains several projects. I have added the primary output of the main project to IS2011. When the IS2011 project builds it sometimes adds the .NET dependencies and sometimes gives warning that cannot find the dependencies. it produces build warning 6248. I spent a lot of time searching for this problem and found the following link on flexera software website but it wasn't helpful at all as it suggests that the dlls have been moved or deleted!! which is not the case for me.

http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q107276

It even sometimes looks for strange dependencies like "a.tmp" or ".dll" and gives warning that it cannot find them either! I don't understand why it behaves like that? anyone has encountered the same problem? what is the solution? Adding the dependencies manually?!!

Please bear in mind that I also have a VS setup installer project that picks up all the dependencies automatically and has no problem. But why IS cannot do that?

0 投票
1 回答
840 浏览

visual-studio-2010 - 为什么 MSBuild 在构建 installshield 项目时会查找 pdb 文件?

我在我的 vS2010 解决方案中添加了一个基本的 MSI 项目,它在我的机器上构建良好,但是当我签入我的代码并使用 TFS 请求构建时,它不会构建并生成以下错误:

C:\Program Files\MSBuild\InstallShield\2011\InstallShield.targets (68):OutputGroups 项目“e:\BldTmp\2\MyProject\My Project Build\Sources\My project\lib.proj.Countdowns\obj\x86\ “lib.proj.Countdown.debug 符号”的 Release\lib.proj.Countdown.pdb” 似乎不存在。

为什么 MSBuild 或 SAB 2011 正在寻找 pdb 文件?我不想将 pdb 文件添加到我的安装程序中。我检查了路径,我可以看到 pdb 文件存在,但是构建会产生这个错误!!