Error in custom action....
struggling with a, as it seems, sequencing problem. I have a dll with two functions, BackupUserFiles and RestoreUserFiles. I placed the BackupUserFiles call right before RemoveExistingProducts, which in turn is before InstallInitialize in Execute immediate. The call is made with a "Call custom dll from installation". That works without problems. Also, if i place the RestoreUserFiles call right after the backup call, that one also works perfectly. But i want to do the RestoreUserFiles after the previous product has been uninstalled, after RemoveExistingProducts somewhere. I have fiddled around with the call to RestoreUserFiles but always get a error message "Error in custom action. The library ... WiseCustomCalla22.dll is invalid or could not be found". I guess thats the temporary dll file unpacked from the binary table that doesnt exist at anytime.
I would have assumed that i could palce the call after installFinalize, for all immediate actions to have been executed, but that one doesnt work either. I have also tried to place the call in the Execute deferred sequence, but the same error. So im confused, why this problem to call this dll after RemoveExistingProducts? isn't it installed again at some point, temporarily in the system?