Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Installing Ocx via Inno Setup
Message
De
11/05/2011 08:54:39
 
 
À
10/05/2011 22:32:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Divers
Thread ID:
01510178
Message ID:
01510307
Vues:
72
Doug, thanks.

I'm quite puzzled because that VFP code has worked with Vista in past trials.
The Inno script fails to copy/register the ocx with no apparent error at install, then returns "OLE error code 0x90070002: The system cannot find the file specified." when the ocx is called.

I distributed the ocx in the application root directory and callled:
! /N regsvr32 /s "FTP Wizard3.ocx"
which worked on a 32bit Windows7 machine.

Haven't yet had a successful install on the 64bit Windows7 platform.

Any ideas? Thanks!

>Hi Doyle.
>
>>I have created a Setup.Exe for my application using Inno Setup Compiler
>>
>>The germane script is:
>>
>>[Files]
>>Source: C:\WINDOWS\system32\FTPWizard3.ocx; DestDir: {sys}; Flags: regserver
>>
>>
>>Programmatically in VFP I have used this code
>>
>>	If ! File("C:\WINDOWS\SYSTEM32\FTPWizard3.ocx")
>>		LOCAL lcFile
>>	lcFile = ucRootDirectory+'\FTPWizard3.ocx'
>>	Copy FILE("&lcFile") To C:\Windows\SYSTEM32\FTPWizard3.ocx
>>
>>		! /N regsvr32 /s FTPWizard3.ocx 
>>	MESSAGEBOX("Done...",32,"Load and Register Ocx")
>>	ELSE
>>	MESSAGEBOX("Yes...",32,"Ocx present")
>>	Endif
>>
>>
>>What would the proper method/syntax be to install on Windows 7?
>
>The Inno line should be all you need. You can remove that VFP code, since it won't work in Windows Vista or 7, and isn't need because the installer took care of it.
>
>Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform