Groups | Blog | Home
all groups > dotnet setup > october 2004 >

dotnet setup : Windows Installer


ansna
10/7/2004 3:11:04 AM
Hi,
we are using the VS 2003 Setup-Project to install a Software-Project. We
install some .exe files and a .mdb access-database too. Now we have the
problem, that everytime a user deletes a .exe from the install-directory the
setup runs a repair installation and "repairs" all files including the access
db with all data insert since the installation.

We searching for a option to exclude the .mdb files from the repair-method
but we dont find some instruction who discribe this. We find something about
a REINSTALL and a REINSTALLMODE option but we dont understand correctly.

So, what must we do to exclude one or more files from a setup-project. We
use the created setup.exe with a setup.ini to run the .msi file - is there a
possiblity.

Phil Wilson
10/7/2004 11:35:41 AM
Repair is a built-in feature, and it can be turned off if it's being
triggered by use of a shortcut. There's no direct support in Visual Studio
setups to disable repair caused by using a shortcut, so you have two
choices:
1. Install your msi file with a command line:
msiexec /i <path to your msi> DISABLEADVTSHORTCUTS=1
2. Use the msi editor Orca (install from Windows Installer section of the
Platform SDK) and directly add DISABLEADVTSHORTCUTS to the Property table
with a Value of 1, avoiding setting it with the command line. There are
programmatic ways to do this too, APIs into the msi file. A Google for
DISABLEADVTSHORTCUTS will tell you more.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

semhelp
12/1/2004 7:15:01 AM
Phil,

In orca, I set the DISABLEADVTSHORTCUTS to "Yes" and it seems to work for
the ".exe" shortcut that is placed on the desktop during installation. Does
a value of "Yes" produce the same result as a value of "1"?

Also, my installation program associates certain extensions with my
executable. These files seem to still trigger the windows repair stuff. Is
there a way to turn off the repair mode for the extensions that you associate
with your executable?

Thanks,

Brian


[quoted text, click to view]
Phil Wilson
12/6/2004 11:57:57 AM
I think any non-null value will work to prevent creation of advertised
shortcuts. I don't know of a good way to disable those other repairs (yhey
can happen during COM object activation too).
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

AddThis Social Bookmark Button