可以从注册表中设置INSTALLDIR [英] possibility to set INSTALLDIR from registry

查看:567
本文介绍了可以从注册表中设置INSTALLDIR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户希望我在同一个文件夹中安装一些应用程序 - 但在每台机器上都不一样!

My customer wants me to install some applications in the same Folder - but not the same on every machine!

主应用程序设置一个注册表项,其路径是安装到。我已设法设置启动条件MAINAPPLICATIONINSTALLED 如果安装了主应用程序,则检查此注册表项。

The main application sets a registry entry with the path it is installed to. I already managed to set a Launch condition MAINAPPLICATIONINSTALLED that checks with this registry entry if the main application is installed.

我知道当我从Installer继承并添加自定义Action时我可以获取INSTALLDIR 。但我试过甚至OnBeforeInstall-Event在文件已经复制到文件夹之后提出,这是用文件系统>写的。应用程序文件夹> DefaultLocation
([ProgramFiles64Folder] [制造商] \ [ProductName])。

I know i can GET INSTALLDIR when I inherit from Installer and add a custom Action. But I tried and even OnBeforeInstall-Event raises AFTER the files were already copied to the Folder, that is written in File System > Application Folder > DefaultLocation ([ProgramFiles64Folder][Manufacturer]\[ProductName]).

是否有可能在DefaultLocation中使用单个参数?例如,注册表值 我在我的MAINAPPLICATIONINSTALLED 条件中读到了?

Is there a possibility to use individual Parameters in the DefaultLocation? For example the registry value I read in my MAINAPPLICATIONINSTALLED condition?

推荐答案

您好,

>>是否有可能在DefaultLocation中使用单个参数?

>>Is there a possibility to use individual Parameters in the DefaultLocation?

我担心你需要提供这个问题的更多细节,你是什么意思"个人参数"?

I'm afraid you need to provide more details for this question, what do you mean about "individual Parameters"?

defaultLocation是应用程序的属性是什么如果您不想使用默认设置,可以将其设置为其他位置:

The defaultLocation is a property of the application what you want to install, you can set it to another location if you do not want the default:

如何使用Windows安装程序设置默认安装路径?

问候,

Frankie


这篇关于可以从注册表中设置INSTALLDIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆