/build/static/layout/Breadcrumb_cap_w.png

Error while deleting the reg key under HKCR\Installer\product

As a requirement before installing, the application should delete the key under
"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\<prod key>"

I created a vbscript and it works fine when executed manually, but when i add it my application it throws an error stating that System administrator has set policies to prevent this installation.

But if delete the Custom action from application, it isntalls fine also if try to delete any other key it works fine.

One more solution i feel is to create a vbs file and write the entire script to a certain location and then execute that vbs file.

What do u guys suggest.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: anonymous_9363 14 years ago
Red Belt
0
You shouldn't delete Windows Installer keys, since it would be an incomplete exercise: you would need to also remove the other, related keys, such as HKCR\Installer\Products\[PackedProductCode]. The relevant product should remove these keys when it is uninstalled.
Posted by: mekaywe 14 years ago
Brown Belt
0
as Ian suggested, keys under HKCR\Installer..... needs to be deleted.
If Vbs is not working, try with Wise Script :)
Posted by: shweta_kar 14 years ago
Blue Belt
0
Hi all,
I am trying to delete [PackedProductCode] key only , also its an user requiremnt to do so hence workign on it.
Second thing i am working on Adminstudio, so can't use wise script.

One more thing i noticed is that adding any custom action in the application(Its vendor msi transform has been created) gives me the above error. adding a msgbox too.


Working on application Potrait Edge Client v 7.7.2
Posted by: anonymous_9363 14 years ago
Red Belt
0
Perhaps I wasn't clear....uninstalling whatever product originally wrote that key should remove it when it is uninstalled. If it doesn't, I'd suggest you concentrate on why it doesn't rather than trying to lash up a massive kludge.
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