2014-03-12 2 views
1

설치 프로세스를 사용자 정의하는 데 어느 정도 성공할 수 있지만 설치 제거 프로세스를 사용자 정의 할 수는 없습니다. "installationFinished"신호를 등록 할 때 installscript.qs의 함수가 호출되지만 놀랍게도 일부 기능을 등록하면 신호 "uninstallationStarted and uninstallationFinished"가 호출되지 않습니다. 이유를 모르십니까? 또한 qinstaller.h에는 여러 가지 상태/단계의 설치를 식별하는 아래의 코드가 있지만 설치 제거를 위해 유사한 정보를 얻으려면 어떻게해야합니까?Qt Installer 프레임 워크 - UNINSTALLER 사용자 정의

enum Status { 
    InstallerUnfinished, 
    InstallerCanceledByUser, 
    InstallerRunning, 
    InstallerFailed, 
    InstallerSucceeded, 
}; 
int status() const; 

enum WizardPage { 
    Introduction = 0x1000, 
    TargetDirectory = 0x2000, 
    ComponentSelection = 0x3000, 
    LicenseCheck = 0x4000, 
    StartMenuSelection = 0x5000, 
    ReadyForInstallation = 0x6000, 
    PerformInstallation = 0x7000, 
    InstallationFinished = 0x8000, 
    End = 0xffff 
}; 

답변

-2

시도해 보셨습니까?

function Controller() 
{ 
    installer.uninstallationStarted.connect(this, Controller.prototype.runMyFunc); 
} 

Controller.prototype.runMyFunc = function() 
{ 
// your code here 
} 
관련 문제