Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Innosetup installation X86/X64
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Innosetup installation X86/X64
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01628261
Message ID:
01628261
Vues:
55
Using innosetup for the setup procedure, I need to run a file after setup, depending on 32bit or 64 bit OS. I tried a few flags to check if the OS is 64 bit, but Innosetup seems to ignore those:
[Code]
function IsX64: Boolean;
begin
  Result := (ProcessorArchitecture = paX64);
end;

[Files]
; MsSql client:
Source: "..\Resources\SQLRuntimeFiles\sqlncli.msi"; DestDir: "{tmp}"; Components: CompleteClient; Check: not IsX64
Source: "..\Resources\SQLRuntimeFiles\sqlncli_x64.msi"; DestDir: "{tmp}"; DestName: "sqlncli.msi"; Components: CompleteClient; Check: IsX64

[Run]
Filename: {sys}\msiexec.exe; Parameters: /i {tmp}\sqlncli.msi; WorkingDir: {tmp}; StatusMsg: Installing SQL Server Native Client Drivers.; Flags: runascurrentuser;
It looks like it ignores the check and always copies both files. So when running the resulting setup.exe on a 32bit OS it gives the error message that it is not supported. What am I missing here?
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform