现在想在选择安装路径下面(红色区域)增加图片的保存路径和文档的保存路径,求大神怎么添加?
config.xml文件配置信息:
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>AutoStereoStorageClient</Name>
<Version>1.0.0</Version>
<Title>AutoStereoStorageClient</Title>
<Publisher>wen</Publisher>
<StartMenuDir>AutoStereoStorageClient</StartMenuDir>
<TargetDir>e:/mm</TargetDir>
<CreateLocalRepository>true</CreateLocalRepository>
</Installer>
package.xml文件配置信息:
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>AutoStereoStorageClient</DisplayName>
<Description>Show checkbox asking whether to open Readme at the end</Description>
<Version>1.0.0-1</Version>
<ReleaseDate>2013-01-01</ReleaseDate>
<Default>true</Default>
<Script>installscript.qs</Script>
<UserInterfaces>
<UserInterface>readmecheckboxform.ui</UserInterface>
</UserInterfaces>
</Package>
installscript.qs文件配置信息:
function Component()
{
installer.installationFinished.connect(this, Component.prototype.installationFinishedPageIsShown);
installer.finishButtonClicked.connect(this, Component.prototype.installationFinished);
}
Component.prototype.createOperations = function()
{
component.createOperations();
}
Component.prototype.installationFinishedPageIsShown = function()
{
try {
if (installer.isInstaller() && installer.status == QInstaller.Success) {
installer.addWizardPageItem( component, "ReadMeCheckBoxForm", QInstaller.InstallationFinished );
}
} catch(e) {
console.log(e);
}
}
Component.prototype.installationFinished = function()
{
try {
if (installer.isInstaller() && installer.status == QInstaller.Success) {
var isReadMeCheckBoxChecked = component.userInterface( "ReadMeCheckBoxForm" ).readMeCheckBox.checked;
if (isReadMeCheckBoxChecked) {
QDesktopServices.openUrl("file:///" + installer.value("TargetDir") + "/README.txt");
}
}
} catch(e) {
console.log(e);
}
}