如何根据之前安装的版本选择“Everyone”/“Just Me”?
使用 Visual Studio 安装项目。我想将“每个人/只有我”的选择更改为与先前安装期间选择的用户相同。
Using Visual Studio setup project. I'd like to change Everyone / Just Me choice to the same as the user selected during previous installation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
终于想通了。使用 VBScript 自定义操作。
并在 AppSearch 之前执行。
完毕!
Finally figured it out. Used a VBScript Custom Action.
And executed it before AppSearch.
Done!
您可以在安装过程中将
ALLUSERS
MSI 属性的值保存到注册表中明确定义的位置。然后,您可以在升级时查询该值并采取相应措施。您还可以使用 MSI api 检查您的产品是否安装在每台计算机或每用户上下文中。为此,您可以调用
MsiEnumProductsEx< /code>
函数并查看您的产品是否出现在任一安装上下文中。
You can save the value of the
ALLUSERS
MSI property to a well-defined location in the Registry during installation. You can then query that value when you upgrade and act accordingly.You can also use the MSI api to check whether your product is installed for in a per-machine or per-user context. To do so you would call the
MsiEnumProductsEx
function and see whether your product appears in either installation context.