I'm calling the Run Program function after the Apply install, so the file to use is physically available.
After aling the Run Program, I want to check if the component has been registerd, looking for a specific regisrty key.
But, stange enought it does not always work.
Sometimes the setup will give no error, somtimes it does.
Am I missing something?
Code: Select all
Set Variable REGASMEXE to $WINDIR$\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe
... other code here ..
Install Files D:\Controls\dll\Mosos.Com.dll to $TARGETDIR$\Programs\DLL
... other code here ...
Apply Install
Run Program $REGASMEXE$ "$TARGETDIR$\Programs\DLL\Mosos.Com.dll" /silent (WAIT, get result into variable REGASMRESULT)
Check Registry Key HKCR\CLSID\{FF328248-86FF-4e3c-B97E-B42FB6179F93}\ into REGCHECK
if Variable REGCHECK Equals NO$KEY
MessageBox: ERROR, Regasm.exe could not register Mosos.Com.dll$NEWLINE$$NEWLINE$Error: $REGASMRESULT$
end