| ||
|
This community works best when people use their real names. Please register for a free account. Links:
» Joel on Software discussion Movie:"Make Better Software" is a 6 movie course designed to help you as you grow from a micro-ISV to a large software company. Moderators:
Eric Sink
Bob Walsh |
Hi Guys, I have inno setup for my app.. I try to install over the previous version.. and I get an error saying unable to replace the exe app file. is it vista blocking the file delete / update? How do I work around this?
Security Wednesday, June 06, 2007
Unless you've done something prosaic, like trying to copy over a program which is locked because its running, you are probably running into the UAC. Set your installer to run as administrator.
Make sure the name of the exe that updates your application contains either "update" or "setup", an example of that is "appnameupdate.exe" or "app_update.exe" We previously used a random name for the updater, and had the same problems.
Totally Agreeing Thursday, June 07, 2007
What problem does this solve? (Vista UAC?) Vista looks for hints that the executable might be a setup prgram, like looking at the name or some resource srtings. If it finds them it assumes you need to run in elevated mode and so pops up the UAC dialog. You can control this behaviour with a manifest as well.
I use InnoSetup (fantastic program) and haven't had any issues on Vista. I may be wrong, but I think it already contains the manifest required to launch it as a UAC admin user. Either way, I never had problems with InnoSetup on Vista, so maybe you are using an old version or simply doing something wrong? Also, a small plug for an auto-update solution that will work on Vista after your setup is well and truly done. Here is our info on some Vista issues you may encounter: http://www.AutoUpdatePlus.com/FiveReasons.html | |
