all groups > visual studio .net setup > april 2005 >
You're in the

visual studio .net setup

group:

Prevent Windows Installer file repair


Prevent Windows Installer file repair Guido Kraus
4/28/2005 3:04:08 AM
visual studio .net setup:
Hi,

I use VS.NET 2003 to create an MSI setup. The setup installs an application
and a data file called 'demo.dat'. However, the user might delete this file
'demo.dat' after some period of time. When the user restarts the application
Windows Installer detects the missing 'demo.dat' file and starts a file
repair. Since the user intentionally deleted 'demo.dat' I would like to
prevent such a file repair.

Is it possible to install some file without the Windows Installer
permanently watching it?

Thanks for your ideas,
RE: Prevent Windows Installer file repair v-garych NO[at]SPAM online.microsoft.com
4/29/2005 12:00:00 AM
Hi Guido,

[quoted text, click to view]

If you want to prevent an installer component from being repaired, you can:

1. Do not give it a GUID in your installer package, this will prevent the
installer component from being registered with Windows Installer, so it
won't be repaired.

or

2. Create an unadvertised shortcut to the targeting installer component,
you need to specify the property identifier which enclosed by square
brackets in the Target column of the Shortcut table and set the
corresponding DISABLEADVTSHORTCUTS property to disable the generation of
shortcuts supporting advertisement.

For detailed information about it, you can refer to MSI SDK documentation
for the Target column in the Shortcut table and the DISABLEADVTSHORTCUTS
property:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/s
hortcut_table.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/d
isableadvtshortcuts.asp


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button