/build/static/layout/Breadcrumb_cap_w.png

Delete a folder help required

Hi ,

When I uninstall my msi . It is not removing the Installdir(Though all files are removed in side it ) . I have given remove file entry but still it is not working .So to counter this I have place a vbscript just before INstall finalize(No CA after the vbscript cutom action except install finalise) in execute deffered mode. But it is still not working .

I have checked it by putting after Install finalize but then the unistallation is not working. When I run the script out side the msi it is working fine.
I have tried to pause the installation so that if any custom action uses the Installdir it would be release in the mean while .But even that is not working. I have observed that the folder can be deleted only after msi uninstallation is done.
Please help how to delete the folder.

0 Comments   [ + ] Show comments

Answers (7)

Posted by: pjgeutjens 13 years ago
Red Belt
0
put the script after InstallFinalize in Immediate Context
Posted by: krischaitu 13 years ago
Senior Yellow Belt
0
I tried putting after finalize in immediate in it is not working
Posted by: pjgeutjens 13 years ago
Red Belt
0
Kris,

post the script here (remember to use the tag )
I have a suspicion as to what might be the problem, but I need to see the script to be sure.

PJ
Posted by: anonymous_9363 13 years ago
Red Belt
0
You're thinking it has 'WScript' directives, right?
Posted by: pjgeutjens 13 years ago
Red Belt
0
yes. I just find it difficult to explain that WScript.CreateObject is bad, but WScript.Shell isn't, so I prefer to just point it out [:D]
Posted by: krischaitu 13 years ago
Senior Yellow Belt
0
Hey can any one tell me how to use Wscript.sleep in custom actions.
Posted by: anonymous_9363 13 years ago
Red Belt
0
If your script is embedded, you can't use any WScript directive. This is because, for embedded script, the host is the Windows Installer interpreter (let's call it), not Windows Scripting Host.

This does NOT include reference to Windows objects whose AppID is prefixed "WScript". For example, these statements won't work:WScript.Echo "Whatever"
WScript.Quit
whereas these will:Set objWSHShell = CreateObject("WScript.Shell")
Set objNetwork = CreateObject("Wscript.Network")
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ