if Variable ADVERTISE Equals TRUE
Apply Advertised (get result into variable SUCCESS)
else
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS Equals TRUE
if Variable SUCCESS not Equals Cancel
Run Program $TARGETDIR$\\foxhhelp7.exe /RegServer
I could register it manually myself after installing the application using Run, Cmd and typing the foxhhelp7.exe /RegServer line.
What you have done should work fine, however for VFP 7.0 the foxhhelp7.exe and the foxhhelpps7.dll should be placed in Common Files\\Microsoft Shared\\VFP and in Windows\\System32. You should Register both the exe as in your example and the dll from the system32 folder.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com