根据用户输入更改AppID和AppName [英] Changing AppID and AppName based on user input
问题描述
我想在同一系统上多次安装同一应用程序,例如,两个使用两个不同Web服务的用户(每个都有自己的Web服务).
I want to install the same application multiple times on the same system, for example for two user using two different web services (each one has their own).
-
在我的设置脚本中,我想根据用户输入更改
AppID
和AppName
(例如,如果用户输入了一个").
In in my setup script I want to change the
AppID
andAppName
based on input from the user (for example my defaultAppName="Service App"
should be changed toAppName="Service App One"
if the user has entered "One").
以上更改应反映在选择开始菜单文件夹"页面中.
Above changes should be reflected in the "Select Start Menu Folder" page.
如何捕获选择开始菜单文件夹"和选择目标位置"向导页面的下一步事件?这是验证用户输入所必需的.
How can the Next click events for the "Select Start Menu Folder" and the "Select Destination Location" wizard pages be caught? This is required to validate the user input.
推荐答案
您好,感谢您在奋斗后的答复,我找到了自己的问题的答案,然后意识到也许我没有正确地提出问题.
Hi thanks for replying after some struggle I found answers to my own question and then realised maybe I was not asking the question correctly.
所需的输出是在开始菜单下有两个单独的已安装应用程序以及自己的卸载程序,并认为更改Appid和Appname可以解决问题.
The output required was having two separate installed application with their own uninstaller under the start menu and thought Changing Appid and Appname will do the trick.
这就是我所做的
#define MyAppName "My Application"
[Setup]
DefaultDirName={pf}\Application\MyApp
DefaultGroupName={#MyAppName}
需要两个以上的编辑操作,可以使用以下命令在自定义页面中进行
above two required editing which was possible in the custom pages using following
WizardForm.DirEdit.Text := 'for DefaultDirName' (Select Destination Location")
WizardForm.GroupEdit.Text:= 'DefaultGroupName'
WizardGroupValue用于读取选择开始菜单"的值
WizardGroupValue is used for reading values of "Select Start Menu"
为了访问内置向导中的下一个事件,我使用了以下内容
for accessing the next event on in built wizard I used the following
//Validate Select Start Menu and Destination values
function NextButtonClick(CurPageID: Integer): Boolean;
var
ResultCode: Integer;
begin
case CurPageID of
wpSelectDir:
begin
//Do validation
end;
wpSelectProgramGroup:
begin
//Do validation
end;
end;
Result := True;
end;
这篇关于根据用户输入更改AppID和AppName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!