Groups | Blog | Home
all groups > visual studio .net setup > may 2007 >

visual studio .net setup : Setup Project : Removing files after installation


dbu1997 NO[at]SPAM gmail.com
5/16/2007 8:10:38 AM
I am new to creating Setup projects in VStudio. I am using 2005. My
experience is with C++.

My problem is that I am using a custom build steps to call an
executable that

(1) Writes an encrypted string to a registry value,
(2) Edits an installed *.ini file.

The custom build step calls my executable from the application folder.
What I don't like is that the exe's are left in the target directory
when the install is finished.

Is there a way to remove the exe after installation, or is they a more
elegant solution? I am sure this is easy, but I am a stuck. Is is
possible to have a custom build step do system calls?
Phil Wilson
5/17/2007 7:58:14 AM
In the solution explorer view where it shows your executable, see if you can
set the Exclude property to True (F4 for preoperties works for me). Some
executables and Dlls can be excluded, meaning they're not installed but
instead stored in the Binary table of the MSI file and streamed out into a
temp folder to run (which means your working directory won't be your app
folder).
--
Phil Wilson
[Microsoft MVP-Windows Installer]
[quoted text, click to view]

dbu1997 NO[at]SPAM gmail.com
5/17/2007 11:21:15 AM
[quoted text, click to view]

This worked fine - I wrongly assumed that excluding the exe would
prevent the custom action from working - I guess people smarter than I
thought about this already.
Phil Wilson
5/18/2007 11:56:04 AM
I haven't got a setup project in front of me so I'm not sure how clear ther
description of Exclude mught be, but the name sure does imply "don't include
it in the setup".
--
Phil Wilson
[Microsoft MVP Windows Installer]
[quoted text, click to view]

AddThis Social Bookmark Button