>
> BUT as I am using vars it does not work .....
>
Then use Project | Task Automation | Perform Static Scan...
Friedrich
Printable View
>
> BUT as I am using vars it does not work .....
>
Then use Project | Task Automation | Perform Static Scan...
Friedrich
I had badly placed the ole32.dll code
trying again .....
--
JP
__________________________________________________ _____
For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____
DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com
JP is totaly "lost"
I reviewed my SB code to check for REG existing entries
If found and if file exists then no installation
If found and NO file exists then install and register
If NO reg entry found I "build" the path from the CJ installer and
check for file exists
If found then NO installation
If not found then no installation
all this works fine
I added in SB script (properly placed around the register pending
operation line the tip from Fredrich on ole32.dll initialize and
uninitialize
In SB I use TWO paths : the 'original one in program files' and I also
copy the ocx for DMC in a sub folder
In DMC code if the return of a CJ ole creation is 'no ole automation' I
catch it and stop normal processing and send the user to an "clarion
registering" with this kind of code
(using the sub DMC path "copy")
pRegFile = CLIP(GLO:LibPath) & CLIP(CodeJock_OcxFile_CB)
vsDebug.Write(vsDebug::ProcedureName & 'Register All Ocx ***** REGISTER
OLE [' & CLIP(pRegFile) & eMyCloseBracket)
pCreateResult = CALL(CLIP(pRegFile),'DllRegisterServer')
IF pCreateResult
vsDebug.Write(vsDebug::ProcedureName & 'Register All Ocx *****
ERROR **** [' & CLIP(pCreateResult) & eMyCloseBracket)
ELSE
UNLOAD(CLIP(pRegFile))
vsDebug.Write(vsDebug::ProcedureName & 'Register All Ocx *****
SUCCESS ****')
END
and I do get a "success" return
when the user restarts dmc :
windows7 - NO GO (even after a reboot)
windows8 - OK (after a DMC registration on my sub path - ie SB
registration does not seem to work on the regular 'program files path')
windows8.1 - NO GO
windows2012 - OK after a DMC registration
windows2008R2 - OK after a DMC registration
windowsXP - OK after a DMC registration
I did check in my vm's all registries beofre saving to a snapshot of a
"clean" os (codejock wise)
always using the same SB installer for all these checks so it is not a
corrupted OCX
the only check I did not perfomr is on dependency walker as Jeff
suggested which on my dev machine shows a requirement to gdiplus.dll on
top of all windows dll's and comctl32.dll from some winsxs folder ....
totaly lost!
--
JP
__________________________________________________ _____
For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____
DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com
> SB registration does not seem to work on the regular 'program files
> path')
Please remember that it is NOT a SetupBuilder registration!!! OCX files
register itself (their own code writes all the registry entries, etc.). In
other words, if the registration process fails then it is always caused by
an issue in the self-registration process.
Friedrich
Created a CodeJock setup to install/register the OCX files and your DMC
product works fine here on a clean Windows 7 and Windows 8.1.
Friedrich
Yes I saw this and your answer also
---------------
why don't you use the automatic "Register as OCX" option in the file
properties?
---------------
because I never thought of it :(
because I thought the regositer all pending ocx was good enough
we learn every day
and of course just checking that option and commenting out the queue
all ocx solves all!!!!
MERCI
JP
--
JP
__________________________________________________ _____
For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____
DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com