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,
Guido
Gary Chang[MSFT] - 29 Apr 2005 07:41 GMT
Hi Guido,
>Is it possible to install some file without the Windows Installer
>permanently watching it?
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.