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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
| ; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{}
AppName=Entreprise_Soft
AppVersion=4.9
;AppVerName=Entreprise_Soft 4.9
AppPublisher=Entreprise_Soft
AppPublisherURL=URL
AppSupportURL=URL
AppUpdatesURL=URL
DefaultDirName={pf}\Entreprise_Soft
DefaultGroupName=Entreprise_Soft
LicenseFile=C:\Documents and Settings\Administrateur\Bureau\flog sauv\License.txt
InfoBeforeFile=C:\Documents and Settings\Administrateur\Bureau\flog sauv\License.txt
InfoAfterFile=C:\Documents and Settings\Administrateur\Bureau\flog sauv\License.txt
OutputDir=C:\Documents and Settings\Administrateur\Bureau
OutputBaseFilename=FloGexe_setup
SetupIconFile=C:\Documents and Settings\Administrateur\Bureau\flog sauv\Soft\Res\funny.ico
Password=123
Compression=lzma
SolidCompression=yes
UserInfoPage=true
VersionInfoCompany=Entreprise_Soft
VersionInfoDescription=Entreprise_Soft
VersionInfoProductName=Entreprise_Soft
VersionInfoVersion=4.9.0.0
WizardImageFile=C:\Documents and Settings\Administrateur\Bureau\flog sauv\Soft\Res\WizModernImage-IS2.bmp
WizardSmallImageFile=C:\Documents and Settings\Administrateur\Bureau\flog sauv\Soft\Res\WizModernSmallImage-IS1.bmp
[Languages]
Name: french; MessagesFile: compiler:Languages\French.isl
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
[Files]
Source: Entreprise_Soft\7z.exe; DestDir: {app}; Flags: ignoreversion
Source: Entreprise_Soft\7z.dll; DestDir: {app}; Flags: ignoreversion
Source: Entreprise_Soft\Entreprise_Soft.exe; DestDir: {app}; Flags: ignoreversion
Source: Entreprise_Soft\*; DestDir: {app}; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[_ISToolDownload]
Source: http://thierryaim.developpez.com/divers/1.zip; DestDir: {tmp}; DestName: 1.zip; Components: Telechargement\Fichier1
; NOTE: Je laisse tes fichiers de downloaad en exemple
[Components]
Name: Telechargement; Description: Telechargement Jeu; Types: full
Name: Telechargement\Fichier1; Description: Fichier 1; Types: full
[Icons]
Name: {group}\Entreprise_Soft; Filename: {app}\Entreprise_Soft.exe
Name: {group}\{cm:ProgramOnTheWeb,Entreprise_Soft}; Filename: URL
Name: {group}\{cm:UninstallProgram,Entreprise_Soft}; Filename: {uninstallexe}
Name: {commondesktop}\Entreprise_Soft; Filename: {app}\Entreprise_Soft.exe; Tasks: desktopicon
[Run]
Filename: {app}\7z.exe; Parameters: x {tmp}\1.zip; Components: Telechargement\Fichier1; Flags: runhidden
Filename: {app}\Entreprise_Soft.exe; Description: {cm:LaunchProgram,Entreprise_Soft}; Flags: nowait postinstall skipifsilent
[Registry]
Root: HKLM; SubKey: SOFTWARE\(32bit Os); ValueType: none; Flags: uninsdeletekey
Root: HKCC; SubKey: SOFTWARE\Wow6432Node\(64bit Os); ValueType: none; Flags: uninsdeletekey
[UninstallDelete]
Name: {app}; Type: filesandordirs
[ Code]
// Function generated by ISTool.
function NextButtonClick(CurPage: Integer): Boolean;
begin
Result := istool_download(CurPage);
end;
Procedure URLLabelOnClick(Sender: TObject);
var
ErrorCode: Integer;
begin
ShellExec('open', 'URL', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end;
{*** INITIALISATION ***}
Procedure InitializeWizard;
var
URLLabel: TNewStaticText;
begin
URLLabel := TNewStaticText.Create(WizardForm);
URLLabel.Caption := 'URL';
URLLabel.Cursor := crHand;
URLLabel.OnClick := @URLLabelOnClick;
URLLabel.Parent := WizardForm;
{ Alter Font *after* setting Parent so the correct defaults are inherited first }
URLLabel.Font.Style := URLLabel.Font.Style + [fsUnderline];
URLLabel.Font.Color := clBlue;
URLLabel.Top := WizardForm.ClientHeight - URLLabel.Height - 15;
URLLabel.Left := ScaleX(20);
end;
[ Code] "ERROR"
function CheckSerial(Serial: String): Boolean;
begin
if Serial = '12345' then Result:= true;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
var
ErrorCode: Integer;
begin
if curpageID=wpUserInfo then
begin
SaveStringToFile(mcLogFile, 'In function CheckSerial ' + ExpandConstant('{userinfoserial}') + Chr(13), True);
end;
Result:=True;
end; |
Partager