/build/static/layout/Breadcrumb_cap_w.png

Uninstall Error When Using Secedit In Package

I'm using Wise Package Studio and was having trouble setting permissions on some registry keys, so I used secedit (per suggestions here). It works great, but I seem to be unable to uninstall the app. It gets all the way to the end where it would normally run secedit and fails:

Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected...etc

I'm pretty sure it has something to do with secedit because if I remove the line from the install script (and thus don't run secedit), I don't have problems uninstalling. But of course then the program doesn't work properly...

Does anyone have an idea as to what might be wrong? Thanks a lot.

PS: If it helps, the problem I was having with registry permissions had something to do with not propogating the permissions correctly when the user account didn't have administrative rights to the machine. (That's a mouthful)

Thanks!

0 Comments   [ + ] Show comments

Answers (2)

Posted by: Mooijr 20 years ago
Yellow Belt
0
I know the problem
resolve this like this
use a if statement

" if NOT Installed then"
call vbSc.... blahblah
END

this should solve it
good LUCK

PS: do this in execute deferred
Posted by: Luke 20 years ago
Yellow Belt
0
Yes, that worked. And so simple! Thanks a lot.
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