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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 03/29/2010 by: VBScab
Red Belt

Please log in to comment
0
as Ian suggested, keys under HKCR\Installer..... needs to be deleted.
If Vbs is not working, try with Wise Script :)
Answered 03/29/2010 by: mekaywe
Brown Belt

Please log in to comment
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
Answered 03/29/2010 by: shweta_kar
Blue Belt

Please log in to comment
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.
Answered 03/29/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity