in a Win32 project, I added these variables to the watch window:
SUCCESS
REMOVEOLD
LASTERROR
Then I stepped through. On a first time install all seems as expected.
But if a previous version has to be uninstalled I get some strange results.
Before
Code: Select all
Install/Remove MSI Package $PRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD)
gets called, SUCCESS is undefined, REMOVEOLD and LASTERROR are empty.
After the call I get
SUCCESS=ERROROLD
REMOVEOLD=SUCCESS
LASTERROR=
And then SUCCESS will never change and keeps the ERROROLD value.
Any assignment (like Apply Install) has no effect.
Is this a problem of the IDE/Debugger or of the runtime engine?