knowledge-database (beta)

Current group: jrsoftware.innosetup

Install Delete

Install Delete  
FTLGH
 Re: Install Delete  
Gavin Lambert
From:FTLGH
Subject:Install Delete
Date:Mon, 20 Dec 2004 13:30:25 -0500
I have a directory I have to delete before installing the new program. I
assume I want to use InstallDelete pointing to the directory I want to
delete. The problem is the directory can be installed wherever the user
wanted. How can I search and then delete the directory before proceeding
with the install? Thanks!
From:Gavin Lambert
Subject:Re: Install Delete
Date:Tue, 21 Dec 2004 10:21:55 +1300
FTLGH wrote:
> I have a directory I have to delete before installing the new program. I
> assume I want to use InstallDelete pointing to the directory I want to
> delete. The problem is the directory can be installed wherever the user
> wanted. How can I search and then delete the directory before proceeding
> with the install? Thanks!

Use a {reg:...} constant if its location can be found in the Registry.
Use a {code:...} constant to perform a more complicated search.

You should be *very* careful with this though -- deleting folders during
installation is almost NEVER the right approach. And the user will be
seriously pissed if, say, they installed the first thing into their
Windows folder and then you go and delete their entire Windows folder.......
   

Copyright © 2006 knowledge-database   -   All rights reserved