doc, saw your reply on the udf.
at least, this part:
code:
$FormFileVer=GETFILEVERSION("%windir%\system32\kixforms.dll", "Fileversion")
Shell '%compspec% "%windir%\system32\regsvr32.exe %windir%\system32\kixforms.dll /u" >nul 2>nul'
IF Not Exist("C:\KIXFORMS\$FormFileVer")
MD ("C:\KIXFORMS\$FormFileVer")
EndIf
COPY "%windir%\system32\kixforms.dll" "C:\KIXFORMS\$FormFileVer\"
should be:
code:
$FormFileVer=GETFILEVERSION($destination+"\kixforms.dll", "Fileversion")
Shell '%compspec% /c "$destination'+'\regsvr32.exe $destination'+'\kixforms.dll /u" >nul 2>nul'
IF Not Exist("C:\KIXFORMS\$FormFileVer")
MD ("C:\KIXFORMS\$FormFileVer")
EndIf
COPY $destination+"\kixforms.dll" "C:\KIXFORMS\$FormFileVer\"
eh... something similar.
also, instead of shelling to dos, you could use:
code:
shell $destination+'\regsvr32.exe $destination'+'\kixforms.dll /u /s'
also, assuming that kixforms is currently at system folder... nah, do this:
code:
$id=readvalue("HKEY_CLASSES_ROOT\Kixtart.Static\CLSID","")
$location=readvalue("HKEY_CLASSES_ROOT\CLSID\"+$id+"\InprocServer32","")
$currentversion=""+getfileversion($location,"FileVersion")