1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
[Files]
Source: "C:\MonProgramme"; DestDir: "{app}"; Flags: ignoreversion
c#\Fichier a INSTALLER\MicrosoftSpeechPlatformSDK.msi"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Renaud\Desktop\A installer pour la synthèse vocal de c#\Fichier a INSTALLER\SpeechPlatformRuntime.msi"; DestDir: "{app}"; Flags: ignoreversion
.........................
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Filename: "msiexec"; Parameters: "/i ""(app)\MicrosoftSpeechPlatformSDK.msi"""; StatusMsg: "Installing MicrosoftSpeechPlatformSDK..."; Check: MyProgCheckSDK
Filename: "msiexec"; Parameters: "/i ""(app)\SpeechPlatformRuntime.msi"""; StatusMsg: "Installing SpeechPlatformRuntime..."; Check: MyProgCheckRuntime
[code ]
function MyProgCheckSDK(): Boolean;
begin
Result := False;
//vérif si besoin d'installer en cherchant dans le registre ou version d'un fichier et si utilisateur accepte
if MsgBox('Do you want to install SDK Speech?', mbConfirmation, MB_YESNO) = idYes Then
Result := True;
end;
function MyProgCheckRuntime(): Boolean;
begin
Result := False;
//vérif si besoin d'installer en cherchant dans le registre ou version d'un fichier et si utilisateur accepte
if MsgBox('Do you want to install Platform Runtime?', mbConfirmation, MB_YESNO) = idYes Then
Result := True;
end; |
Partager