Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Installing Ocx via Inno Setup
Message
From
10/05/2011 22:32:32
 
 
To
10/05/2011 10:17:52
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01510178
Message ID:
01510269
Views:
80
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform