UNINSTALL problem : errorcode 1720
Hi all,
i wrote in my MSI some vbscripts.
by Uninstall i am getting an error " a script required for this install to complete could not be run"
I deleted all the scripts that i have inserted but i am still getting the same problem. Note that the scripts were run as embedded.
i tried debug Mode the operation hangs while doing ExecuteAction.
Is there a way to know what's going on?
I can not go further if i don't finish uninstall.
Thanks in advance
Best Regards
i wrote in my MSI some vbscripts.
by Uninstall i am getting an error " a script required for this install to complete could not be run"
I deleted all the scripts that i have inserted but i am still getting the same problem. Note that the scripts were run as embedded.
i tried debug Mode the operation hangs while doing ExecuteAction.
Is there a way to know what's going on?
I can not go further if i don't finish uninstall.
Thanks in advance
Best Regards
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
AngelD
16 years ago
Posted by:
zipsantro
16 years ago
Daher, you have installed your application and usually it creates a copy fo your installer under C:\Windows\Installer and uses fro repair amd uninstallation if REINSTALLMODE property si not being used by your MSI. When you do some changes to your local MSI and start a uninstallation it stills refers to C:\windows\installer.
For time being, you can go and delete your backed up MSi from C:\Windows\Installer and start uninstallation form your local copy. To avoid such kind of issue permantely use REINSTALLMODE Property which will help the installer to always look at your local copy.
Jeeoo!
Santro
For time being, you can go and delete your backed up MSi from C:\Windows\Installer and start uninstallation form your local copy. To avoid such kind of issue permantely use REINSTALLMODE Property which will help the installer to always look at your local copy.
Jeeoo!
Santro
Posted by:
anonymous_9363
16 years ago
Santro, you're on the wrong track there, I'm afraid. You're thinking of the error where the WI engine cannot access the original source media.
daher, Kim (AngelD) is almost right. You need to log the install to see which script is missing but note that WI logging doesn't show code execution. Indeed, it will only show you the first few lines of the code itself. All scripts should include the writing of progress and/or error messages to the MSI log, using the Session.Message method People rarely do, though, because they make the fatal mistake of assumption, i.e. they assume a script will always execute perfectly and they fail to program defensively. I do the reverse: I assume that EVERY STEP of the script will fail and code accordingly.
daher, Kim (AngelD) is almost right. You need to log the install to see which script is missing but note that WI logging doesn't show code execution. Indeed, it will only show you the first few lines of the code itself. All scripts should include the writing of progress and/or error messages to the MSI log, using the Session.Message method People rarely do, though, because they make the fatal mistake of assumption, i.e. they assume a script will always execute perfectly and they fail to program defensively. I do the reverse: I assume that EVERY STEP of the script will fail and code accordingly.
Posted by:
zipsantro
16 years ago
Posted by:
anonymous_9363
16 years ago
ORIGINAL: zipsantroIt does indeed but if the script is missing from the original - which is the case here - it will still be missing from the copy. Unless you know some means that an MSI can acquire missing components whilst being copied by the engine, of course :)
If we are installing msi locally it creates the copy and uses it for uninstallation even if we dont have the local copy.
My purpose in pointing that out was to avoid the OP chasing red herrings, nothing else.There's no point in trying it out because, simply put, it won't work in this case.
Posted by:
daher
16 years ago
Thanks for your replies,
Well I tried what Santro said. But i am still stuck with the same error.
VBScab: i deleted the script from my MSI and it still pointing to an error in my MSI mainly in the action holding the script that i deleted.
I agree with you that scripts can have a lot of errors and i knew where is the error ... but the problem is that i deleted the whole vbscript and in log it points that there is an error in the vbscript which i deleted.
Well i am still stuck but i can not attach my log file (no sufficient permission)
Thanks for your replies again.
Well I tried what Santro said. But i am still stuck with the same error.
VBScab: i deleted the script from my MSI and it still pointing to an error in my MSI mainly in the action holding the script that i deleted.
I agree with you that scripts can have a lot of errors and i knew where is the error ... but the problem is that i deleted the whole vbscript and in log it points that there is an error in the vbscript which i deleted.
Well i am still stuck but i can not attach my log file (no sufficient permission)
Thanks for your replies again.
Posted by:
daher
16 years ago
Posted by:
anonymous_9363
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.